PHiLIP
spi.h
Go to the documentation of this file.
1 /*
2  * Copyright 2020 Kevin Weiss for HAW Hamburg
3  *
4  * This file is subject to the terms and conditions of the MIT License. See the
5  * file LICENSE in the top level directory for more details.
6  * SPDX-License-Identifier: MIT
7  */
8 
20 #ifndef SPI_H_
21 #define SPI_H_
22 
23 /* Defines ********************************************************************/
25 #define SPI_NO_DATA_BYTE 0xFE
26 
27 /* Function prototypes ********************************************************/
35 void init_dut_spi(map_t *reg);
36 
45 error_t commit_dut_spi();
46 
51 
55 void init_dut_spi_msp();
56 
60 void deinit_dut_spi_msp();
61 /* Interrupts ----------------------------------------------------------------*/
65 void GPIO_NSS_INT();
66 
67 #endif /* SPI_H_ */
68 
void init_dut_spi_msp()
Only for use with the STM32xxxx_HAL_Driver.
Definition: spi.c:102
void GPIO_NSS_INT()
Interrupt callback for the spi line raise or lower.
Definition: spi.c:324
void update_dut_spi_inputs()
Updates the spi input levels.
Definition: spi.c:217
void deinit_dut_spi_msp()
Only for use with the STM32xxxx_HAL_Driver.
Definition: spi.c:129
The memory map.
Definition: PHiLIP_typedef.h:340
void init_dut_spi(map_t *reg)
Initializes spi registers.
Definition: spi.c:81
error_t commit_dut_spi()
Commits the spi registers and executes operations.
Definition: spi.c:153