monoZ docs
|
-For monoZ SPI refer MZ_spi.h file. More...
Functions | |
MZ_SPI_BTYPE_PTR | MZ_SPI_get_base_address (void) |
This function returns the base address of all the SPI defined in SDK. More... | |
MZ_SPI_BTYPE_PTR | MZ_SPI_reference (en_spi_no spi_no) |
This function returns the address of specific SPI defined in SDK. More... | |
mz_error_t | MZ_SPI_init (MZ_SPI_INIT_PTR _cfg) |
This function initializes the specific SPI. More... | |
mz_error_t | MZ_SPI_register_callback (uint8_t spi_no, _spi_api cb) |
This function registers the SPI Event callback. More... | |
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. More... | |
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. More... | |
void | MZ_HAL_SPI_IRQHandler (uint8_t spi_no) |
This function defines the Global Interrupt handler functions of SPI. More... | |
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. More... | |
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. More... | |
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. More... | |
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. More... | |
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. More... | |
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. More... | |
-For monoZ SPI refer MZ_spi.h file.
MZ_SPI_BTYPE_PTR MZ_SPI_get_base_address | ( | void | ) |
This function returns the base address of all the SPI defined in SDK.
MZ_SPI_BTYPE_PTR MZ_SPI_reference | ( | en_spi_no | spi_no | ) |
This function returns the address of specific SPI defined in SDK.
spi_no | en_spi_no |
mz_error_t MZ_SPI_init | ( | MZ_SPI_INIT_PTR | _cfg | ) |
This function initializes the specific SPI.
_cfg | MZ_SPI_INIT_PTR |
mz_error_t MZ_SPI_register_callback | ( | uint8_t | spi_no, |
_spi_api | cb | ||
) |
This function registers the SPI Event callback.
spi_no | uint8_t |
cb | _spi_api |
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.
spi_no | uint8_t |
cb | _spi_api |
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.
spi_no | uint8_t |
cb | _spi_api |
void MZ_HAL_SPI_IRQHandler | ( | uint8_t | spi_no | ) |
This function defines the Global Interrupt handler functions of SPI.
spi_no | uint8_t |
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.
spi_no | uint8_t |
pData | *uint8_t |
Size | uint8_t |
Timeout | uint32_t |
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.
spi_no | uint8_t |
pData | *uint8_t |
Size | uint16_t |
Timeout | uint32_t |
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.
spi_no | uint8_t |
pTxData | *uint8_t |
pRxData | *uint8_t |
Size | uint16_t |
Timeout | uint32_t |
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.
spi_no | uint8_t |
pData | *uint8_t |
Size | uint16_t |
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.
spi_no | uint8_t |
pData | *uint8_t |
Size | uint16_t |
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.
spi_no | uint8_t |
pTxData | *uint8_t |
pRxData | *uint8_t |
Size | uint16_t |