Modules§
Structs§
- ChMask encodes the channels usable for uplink access. 0 = channel 1, 15 = channel 16.
- PhyPayload represents the LoRaWAN PHY payload.
Enums§
Constants§
Traits§
Functions§
- Encrypt f_opts mac-command data. For uplink: Set the a_fcnt_down to false and use the f_cnt_up as f_cnt. For downlink if f_port is unset or equal to 0: Set the a_fcnt_down to false and use the n_fcnt_down as f_cnt. For downlink if f_port > 0: Set the a_fcnt_down to true and use the a_f_cnt_down as f_cnt.
- Encrypt (and decrypt) the frm_payload. Note that the same function is used for encryption and decryption.