6.6.4.4.1 Function dac_get_status()

Retrieves the current module status.

uint32_t dac_get_status( struct dac_module *const module_inst)

Checks the status of the module and returns it as a bitmask of status flags.

Table 6-21. Parameters
Data directionParameter nameDescription

[in]

module_inst

Pointer to the DAC software device struct

Returns

Bitmask of status flags.

Table 6-22. Return Values
Return valueDescription

DAC_STATUS_CHANNEL_0_EMPTY

Data has been transferred from DATABUF to DATA by a start conversion event and DATABUF is ready for new data

DAC_STATUS_CHANNEL_0_UNDERRUN

A start conversion event has occurred when DATABUF is empty