mz_error_t
Enumeration of monoZ Error Flags.
monoZ Public All peripheral Configurations will send to monoZ library through this file
mz_error_t SPI2_init(void)
static void spi2_tx_intr(void *arg)
static void spi2_rx_intr(void *arg)
#define MZ_SPI2_INIT_FIRSTBIT
#define MZ_SPI2_INIT_MODE
#define MZ_SPI2_INIT_TIMODE
#define MZ_SPI2_INIT_CRCCALCULATION
#define MZ_SPI2_INIT_DIRECTION
#define MZ_SPI2_INIT_BAUDRATEPRESCALER
#define MZ_SPI2_INIT_DATASIZE
#define MZ_SPI2_INIT_NSSPMODE
#define MZ_SPI2_INIT_CLKPHASE
#define MZ_SPI2_INIT_CRCLENGTH
#define MZ_SPI2_INIT_CRCPOLYNOMIAL
#define MZ_SPI2_INIT_CLKPOLARITY
This file contains all the functionalities for SPI protocol.
mz_error_t MZ_SPI_Receive_IT(uint8_t spi_no, uint8_t *pData, uint16_t Size)
This function is used to receive data using SPI in interrupt mode.
mz_error_t MZ_SPI_register_intr_cb_tx(uint8_t spi_no, _spi_api cb)
This function registers the Interrupt for TX complete callback function for the specific SPI.
mz_error_t MZ_SPI_register_intr_cb_rx(uint8_t spi_no, _spi_api cb)
This function registers the Interrupt for RX complete callback function for the specific SPI.