39#define I2C_MAX_COUNT_SIZE I2C_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.
This file contains all the functionalities for I2C protocol.
MZ_I2CX MZ_I2C_BTYPE
[TODO]
en_i2c_no
Enumeration for monoZ I2C Enable or disable the I2C instance.
_mz_fp _i2c_api
use _i2c_api as monoZ function pointer
MZ_I2CX * MZ_I2C_BTYPE_PTR
[TODO]
monoZ Public All peripheral Configurations will send to monoZ library through this file
MZ_I2C_BTYPE_PTR MZ_I2C_get_base_address(void)
This function returns the base address of all the I2CS defined in SDK.
void MZ_HAL_I2C_EV_IRQHandler(uint8_t i2c_no)
This function defines the Global Event Interrupt handler functions of I2C.
mz_error_t MZ_I2C_init(MZ_I2C_INIT_PTR _cfg)
This function initializes the specific I2C.
mz_error_t MZ_I2C_register_intr_cb_rx(uint8_t i2c_no, _i2c_api cb)
This function registers the RX complete callback function for the specific I2C.
mz_error_t MZ_I2C_register_intr_cb_tx(uint8_t i2c_no, _i2c_api cb)
This function registers the TX complete callback function for the specific I2C.
mz_error_t MZ_I2C_Master_Receive(uint8_t i2c_no, uint16_t DevAddress, uint8_t *pData, uint16_t Size, uint32_t Timeout)
This function is used to receive data using I2C in interrupt mode.
mz_error_t MZ_I2C_register_callback(uint8_t I2C_no, _i2c_api cb)
This function registers the I2C callback.
void MZ_HAL_I2C_ER_IRQHandler(uint8_t i2c_no)
This function defines the Global Error Interrupt handler functions of I2C.
mz_error_t MZ_I2C_Master_Receive_IT(uint8_t i2c_no, uint16_t DevAddress, uint8_t *pData, uint16_t Size)
This function is used to receive data using I2C in interrupt mode.
MZ_I2C_BTYPE_PTR MZ_I2C_reference(en_i2c_no i2c_no)
This function returns the address of the specific I2C.
mz_error_t MZ_I2C_Master_Transmit_IT(uint8_t i2c_no, uint16_t DevAddress, uint8_t *pData, uint16_t Size)
This function is used to transmit data using I2C in polling mode.
mz_error_t MZ_I2C_Master_Transmit(uint8_t i2c_no, uint16_t DevAddress, uint8_t *pData, uint16_t Size, uint32_t Timeout)
This function is used to transmit data using I2C in interrupt mode.
Structure for I2C Initialization.
Structure for monoZ I2C events.
_i2c_api I2C_ev_call_back
I2C_HandleTypeDef _handler
Structure for I2C interrupts.
I2C_HandleTypeDef * i2c_ptr