Version of personalized IMPACT LoRa
Fork of LMiC-10secs by
lmic.h File Reference
LMIC API. More...
Go to the source code of this file.
Data Structures | |
struct | bcninfo_t |
Information about the last and previous beacons. More... | |
Enumerations | |
enum | { BCN_NONE = 0x00, BCN_PARTIAL = 0x01, BCN_FULL = 0x02, BCN_NODRIFT = 0x04 } |
Parsing and tracking states of beacons. More... | |
Functions | |
void | LMIC_setSession (u4_t netid, devaddr_t devaddr, xref2u1_t nwkKey, xref2u1_t artKey) |
Setup given session keys and put the MAC in a state as if a join request/accept would have negotiated just these keys. |
Detailed Description
LMIC API.
Definition in file lmic.h.
Enumeration Type Documentation
anonymous enum |
Function Documentation
void LMIC_setSession | ( | u4_t | netid, |
devaddr_t | devaddr, | ||
xref2u1_t | nwkKey, | ||
xref2u1_t | artKey | ||
) |
Setup given session keys and put the MAC in a state as if a join request/accept would have negotiated just these keys.
It is crucial that the combinations `devaddr/nwkkey` and `devaddr/artkey` are unique within the network identified by `netid`. NOTE: on Harvard architectures when session keys are in flash: Caller has to fill in LMIC.{nwk,art}Key before and pass {nwk,art}Key are NULL
- Parameters:
-
netid a 24 bit number describing the network id this device is using devaddr the 32 bit session address of the device. It is strongly recommended to ensure that different devices use different numbers with high probability. nwkKey the 16 byte network session key used for message integrity. If NULL the caller has copied the key into `LMIC.nwkKey` before. artKey the 16 byte application router session key used for message confidentiality. If NULL the caller has copied the key into `LMIC.artKey` before.
Generated on Wed Jul 13 2022 00:34:16 by 1.7.2