Functions | |
cy_en_scb_ezi2c_status_t | Cy_SCB_EZI2C_Init (CySCB_Type *base, cy_stc_scb_ezi2c_config_t const *config, cy_stc_scb_ezi2c_context_t *context) |
Initializes the SCB for the EZI2C operation. More... | |
void | Cy_SCB_EZI2C_DeInit (CySCB_Type *base) |
De-initializes the SCB block, returns the register values to default. More... | |
__STATIC_INLINE void | Cy_SCB_EZI2C_Enable (CySCB_Type *base) |
Enables the SCB block for the EZI2C operation. More... | |
void | Cy_SCB_EZI2C_Disable (CySCB_Type *base, cy_stc_scb_ezi2c_context_t *context) |
Disables the SCB block and clears the context statuses. More... | |
void | Cy_SCB_EZI2C_SetAddress1 (CySCB_Type *base, uint8_t addr, cy_stc_scb_ezi2c_context_t *context) |
Sets the primary EZI2C slave address. More... | |
uint32_t | Cy_SCB_EZI2C_GetAddress1 (CySCB_Type const *base, cy_stc_scb_ezi2c_context_t const *context) |
Returns the primary the EZI2C slave address. More... | |
void | Cy_SCB_EZI2C_SetAddress2 (CySCB_Type *base, uint8_t addr, cy_stc_scb_ezi2c_context_t *context) |
Sets the secondary EZI2C slave address. More... | |
uint32_t | Cy_SCB_EZI2C_GetAddress2 (CySCB_Type const *base, cy_stc_scb_ezi2c_context_t const *context) |
Returns the secondary EZI2C slave address. More... | |
cy_en_scb_ezi2c_status_t Cy_SCB_EZI2C_Init | ( | CySCB_Type * | base, |
cy_stc_scb_ezi2c_config_t const * | config, | ||
cy_stc_scb_ezi2c_context_t * | context | ||
) |
Initializes the SCB for the EZI2C operation.
base | The pointer to the EZI2C SCB instance. |
config | The pointer to the configuration structure cy_stc_scb_ezi2c_config_t. |
context | The pointer to the context structure cy_stc_scb_ezi2c_context_t allocated by the user. The structure is used during the EZI2C operation for internal configuration and data retention. The user must not modify anything in this structure. |
void Cy_SCB_EZI2C_DeInit | ( | CySCB_Type * | base | ) |
De-initializes the SCB block, returns the register values to default.
base | The pointer to the EZI2C SCB instance. |
__STATIC_INLINE void Cy_SCB_EZI2C_Enable | ( | CySCB_Type * | base | ) |
Enables the SCB block for the EZI2C operation.
base | The pointer to the EZI2C SCB instance. |
void Cy_SCB_EZI2C_Disable | ( | CySCB_Type * | base, |
cy_stc_scb_ezi2c_context_t * | context | ||
) |
Disables the SCB block and clears the context statuses.
Note that after the block is disabled, the TX and RX FIFOs and hardware statuses are cleared. Also, the hardware stops driving the output and ignores the input.
base | The pointer to the EZI2C SCB instance. |
context | The pointer to the context structure cy_stc_scb_ezi2c_context_t allocated by the user. The structure is used during the EZI2C operation for internal configuration and data retention. The user must not modify anything in this structure. |
void Cy_SCB_EZI2C_SetAddress1 | ( | CySCB_Type * | base, |
uint8_t | addr, | ||
cy_stc_scb_ezi2c_context_t * | context | ||
) |
Sets the primary EZI2C slave address.
base | The pointer to the EZI2C SCB instance. |
addr | The 7-bit right justified slave address. |
context | The pointer to the context structure cy_stc_scb_ezi2c_context_t allocated by the user. The structure is used during the EZI2C operation for internal configuration and data retention. The user must not modify anything in this structure. |
uint32_t Cy_SCB_EZI2C_GetAddress1 | ( | CySCB_Type const * | base, |
cy_stc_scb_ezi2c_context_t const * | context | ||
) |
Returns the primary the EZI2C slave address.
base | The pointer to the EZI2C SCB instance. |
context | The pointer to the context structure cy_stc_scb_ezi2c_context_t allocated by the user. The structure is used during the EZI2C operation for internal configuration and data retention. The user must not modify anything in this structure. |
void Cy_SCB_EZI2C_SetAddress2 | ( | CySCB_Type * | base, |
uint8_t | addr, | ||
cy_stc_scb_ezi2c_context_t * | context | ||
) |
Sets the secondary EZI2C slave address.
base | The pointer to the EZI2C SCB instance. |
addr | The 7-bit right justified slave address. |
context | The pointer to the context structure cy_stc_scb_ezi2c_context_t allocated by the user. The structure is used during the EZI2C operation for internal configuration and data retention. The user must not modify anything in this structure. |
uint32_t Cy_SCB_EZI2C_GetAddress2 | ( | CySCB_Type const * | base, |
cy_stc_scb_ezi2c_context_t const * | context | ||
) |
Returns the secondary EZI2C slave address.
base | The pointer to the EZI2C SCB instance. |
context | The pointer to the context structure cy_stc_scb_ezi2c_context_t allocated by the user. The structure is used during the EZI2C operation for internal configuration and data retention. The user must not modify anything in this structure. |