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.
Data direction | Parameter name | Description |
---|---|---|
[in] |
module_inst |
Pointer to the DAC software device struct |
Returns
Bitmask of status flags.
Return value | Description |
---|---|
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 |