13#include "stm32l4xx_hal_spi.h"
34#define SPI_MAX_COUNT_SIZE SPI_MAX_COUNT
unsigned char mzUint8
1 Byte data type
unsigned long int mzUint32
4 Byte data type
mzReg
monoZ Register and Deregister
mz_error_t
Enumeration of monoZ Error Flags.
monoZ Public All peripheral Configurations will send to monoZ library through this file
en_spi_no
Enumeration for monoZ SPI Enable or disable the I2C instance.
MZ_SPIX MZ_SPI_BTYPE
[TODO]
MZ_SPIX * MZ_SPI_BTYPE_PTR
[TODO]
_mz_fp _spi_api
use _spi_api as monoZ function pointer
mz_error_t MZ_SPI_TransmitReceive_IT(uint8_t spi_no, uint8_t *pTxData, uint8_t *pRxData, uint16_t Size)
This function is used to transmit/receive data using SPI in interrupt mode.
MZ_SPI_BTYPE_PTR MZ_SPI_reference(en_spi_no spi_no)
This function returns the address of specific SPI defined in SDK.
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_callback(uint8_t spi_no, _spi_api cb)
This function registers the SPI Event callback.
mz_error_t MZ_SPI_Transmit(uint8_t spi_no, uint8_t *pData, uint16_t Size, uint32_t Timeout)
This function is used to transmit data using SPI in polling mode.
mz_error_t MZ_SPI_init(MZ_SPI_INIT_PTR _cfg)
This function initializes the specific SPI.
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_TransmitReceive(uint8_t spi_no, uint8_t *pTxData, uint8_t *pRxData, uint16_t Size, uint32_t Timeout)
This function is used to transmit/receive data using SPI in polling mode.
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.
mz_error_t MZ_SPI_Receive(uint8_t spi_no, uint8_t *pData, uint16_t Size, uint32_t Timeout)
This function is used to receive data using SPI in polling mode.
void MZ_HAL_SPI_IRQHandler(uint8_t spi_no)
This function defines the Global Interrupt handler functions of SPI.
mz_error_t MZ_SPI_Transmit_IT(uint8_t spi_no, uint8_t *pData, uint16_t Size)
This function is used to transmit data using SPI in interrupt mode.
MZ_SPI_BTYPE_PTR MZ_SPI_get_base_address(void)
This function returns the base address of all the SPI defined in SDK.
_spi_api SPI_ev_call_back
SPI_HandleTypeDef _handler
SPI_HandleTypeDef * spi_ptr