Data Structures¶

group group_csdidac_data_structures

Describes the data structures defined by the CSDIDAC.

The CSDIDAC middleware use structures for output channel pins, middleware configuration, and context. The pin structure is included in the configuration structure and both of them can be defined by the user with the CSD personality in the Device Configurator or manually if the user doesn’t use ModusToolbox. The context structure contains a copy of the configuration structure and current CSDIDAC middleware state data. The context structure should be allocated by the user and be passed to all CSDIDAC middleware functions. CSDIDAC middleware structure sizes are shown in the table below:

 Structure Size in bytes (w/o padding) 5 23 31

struct cy_stc_csdidac_pin_t
#include <cy_csdidac.h>

The CSDIDAC pin structure.

struct cy_stc_csdidac_config_t
#include <cy_csdidac.h>

The CSDIDAC configuration structure.

struct cy_stc_csdidac_context_t
#include <cy_csdidac.h>

The CSDIDAC context structure, that contains the internal middleware data.