Skip to main content

event_clear

Function event_clear 

Source
pub const fn event_clear(current: u8) -> u8
Expand description

Returns the event mask value that clears a pending RTC timeout, from section 15.3.

The datasheet names the register; the bit, bit 1, is the one Semtech’s reference sx126x_driver sets in sx126x_stop_rtc.

§Arguments

  • current - the register value read back from the chip.

§Returns

The value to write.