nrfxlib API 3.3.99
Loading...
Searching...
No Matches

◆ nrf_scan_send()

nrf_scan_error_t nrf_scan_send ( nrf_scan_t const * p_scan,
nrf_scan_frame_t * p_tx_frame )

#include <softperipheral/sCAN/include/nrf_scan.h>

sCAN send function.

This function configures the mode of operation and attempts to send a frame on the CAN bus.

Parameters
[in]p_scanPointer to the sCAN driver instance.
[in]p_tx_framePointer to the TX frame structure that will be sent on the bus.
Note
This function must not be called before nrf_scan_timing has been called at least once. This function can't be called when mode of operation is LISTENONLY.
Return values
NRF_SCAN_SUCCESSTX transaction has been dispatched successfully (does not imply correct reception).
NRF_SCAN_ERROR_BUSYThere is another TX transaction in the queue.
NRF_SCAN_ERROR_INVALID_STATEnrfx driver state is invalid.
NRF_SCAN_ERROR_INVALID_PARAMsCAN configuration contains an invalid parameter.