The DlnSpiSlaveIsEventEnabled() function retrieves information whether the SPI slave events are active or not.
DlnSpiSlaveIsEventEnabled()
DLN_RESULT DlnSpiSlaveIsEventEnabled( HDLN handle, uint8_t port, uint8_t *enabled );
A handle to the DLN-series adapter.
A number of the SPI slave port to retrieve the information from.
A pointer to an unsigned 8-bit integer that receives information whether the SPI slave port events are activated or not. There are two possible values:
0 or DLN_SPI_SLAVE_EVENT_DISABLED - SPI slave events are enabled.
DLN_SPI_SLAVE_EVENT_DISABLED
1 or DLN_SPI_SLAVE_EVENT_ENABLED - SPI slave events are disabled.
DLN_SPI_SLAVE_EVENT_ENABLED
The function successfully retrieves the SPI slave buffer full event.
The port number is not valid. Use the DlnSpiSlaveGetPortCount() function to find the maximum possible port number.
The DlnSpiSlaveIsEventEnabled() function is defined in the dln_spi_slave.h file.
dln_spi_slave.h