PSoC 6 Peripheral Driver Library

General Description

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 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.