Cypress CSDADC Middleware Library 2.10
Data Structures

General Description

Describes the data structures defined by the CSDADC.

The CSDADC MW use structures for the input channel pins, conversion results, MW configuration and context. The pin structure is included into the configuration structure and both can be defined by the user with the CSD personality in the Device Configurator or manually if the user does not use ModusToolbox™. The result structure is included into the context structure and contains voltages and ADC codes for all 32 input channels of more recent conversions. Besides the result structure, the context structure contains a copy of the configuration structure, the current CSDADC MW state data and calibration data. The context structure is allocated by the user and passed to all CSDADC MW functions. The CSDADC MW structure sizes are shown in the table below:

StructureSize in bytes (w/o padding)
cy_stc_csdadc_ch_pin_t 5
cy_stc_csdadc_config_t 157
cy_stc_csdadc_result_t 4
cy_stc_csdadc_context_t 322

Data Structures

struct  cy_stc_csdadc_ch_pin_t
 CSDADC pin structure. More...
struct  cy_stc_csdadc_config_t
 CSDADC configuration structure. More...
struct  cy_stc_csdadc_result_t
 CSDADC result structure. More...
struct  cy_stc_csdadc_context_t
 The CSDADC context structure, which contains the internal driver data for the CSDADC MW. More...


typedef void(* cy_csdadc_callback_t) (void *ptrCxt)
 Provides the typedef for the callback function that is intended to be called when the "End Of Conversion" cycle callback event occurs.