rmt_rx_register_event_callbacks() function
Set callbacks for RMT RX channel
Arguments
rx_channel
RMT generic channel that created by `rmt_new_rx_channel()`
cbs
Group of callback functions
user_data
User data, which will be passed to callback functions directly
Return value
- ESP_OK: Set event callbacks successfully - ESP_ERR_INVALID_ARG: Set event callbacks failed because of invalid argument - ESP_FAIL: Set event callbacks failed because of other error
Notes
User can deregister a previously registered callback by calling this function and setting the callback member in the `cbs` structure to NULL. When CONFIG_RMT_ISR_IRAM_SAFE is enabled, the callback itself and functions called by it should be placed in IRAM. The variables used in the function should be in the SRAM as well. The `user_data` should also reside in SRAM.
rmt_rx_register_event_callbacks() calls 2 functions:
![]()
rmt_rx_register_event_callbacks()
rmt_rx_register_event_callbacks() reads 10 variables and writes 2 variables:
![]()
rmt_rx_register_event_callbacks()