CAT2 Peripheral Driver Library

Data Structures

struct  cy_stc_scb_i2c_config_t
 I2C configuration structure. More...
 
struct  cy_stc_scb_i2c_context_t
 I2C context structure. More...
 
struct  cy_stc_scb_i2c_master_xfer_config_t
 The I2C Master transfer structure. More...
 

Typedefs

typedef void(* cy_cb_scb_i2c_handle_events_t) (uint32_t event)
 Provides the typedef for the callback function called in the Cy_SCB_I2C_Interrupt to notify the user about occurrences of I2C Callback Events.
 
typedef cy_en_scb_i2c_command_t(* cy_cb_scb_i2c_handle_addr_t) (uint32_t event)
 Provides the typedef for the callback function called in the Cy_SCB_I2C_Interrupt to notify the user about occurrences of I2C Address Callback Events. More...
 
typedef void(* cy_cb_scb_i2c_handle_hs_mode_t) (uint32_t event)
 Provides the typedef for the callback function called in the Cy_SCB_I2C_Interrupt to notify the user about occurrences of I2C High-speed mode Callback Events.
 
typedef void(* cy_cb_scb_i2c_handle_deep_sleep_mode_t) (uint32_t event)
 Provides the typedef for the callback function called in the Cy_SCB_I2C_DeepSleepCallback to notify the user when going into and out of deepsleep I2C Deep Sleep Callback Events.
 

Detailed Description

Typedef Documentation

◆ cy_cb_scb_i2c_handle_addr_t

typedef cy_en_scb_i2c_command_t(* cy_cb_scb_i2c_handle_addr_t) (uint32_t event)

Provides the typedef for the callback function called in the Cy_SCB_I2C_Interrupt to notify the user about occurrences of I2C Address Callback Events.

This callback must return a decision to ACK (continue transaction) or NAK (end transaction) the received address. Note if the slave is configured to accept an address in RX FIFO, it must read from it using the Cy_SCB_ReadRxFifo function.