armapi
v1.0
bĂȘta
|
Macros | |
#define | ARM_LW_UNCONFIRMED(val) ((-1)*(val)) |
Macro to set unconfirmed frame. More... | |
#define | ARM_LW_IS_UNCONFIRMED(val) ((val)<=0) |
Macro to know if the frame is unconfirmed or not. More... | |
Functions | |
armError_t | armLwSetRadio (arm_t *arm, uint8_t txChannel, uint8_t power, uint8_t txSf, uint8_t rx2Sf, uint8_t rx2Channel) |
Setup the LoraWan radio configuration. More... | |
void | armLwGetRadio (arm_t *arm, uint8_t *txChannel, uint8_t *power, uint8_t *txSf, uint8_t *rx2Sf, uint8_t *rx2Channel) |
Get the LoraWan radio configuration. More... | |
armError_t | armLwSetConfirmedFrame (arm_t *arm, int8_t nbFrame) |
Enable/Disable and set the confirmed frame. More... | |
int8_t | armLwGetConfirmedFrame (arm_t *arm) |
Get the setup of confirmed frame. More... | |
void | armLwSetPortField (arm_t *arm, uint8_t port) |
Set the port field. More... | |
uint8_t | armLwGetPortField (arm_t *arm) |
Get the port field. More... | |
void | armLwEnableOtaa (arm_t *arm, bool enable) |
Enable/Disable Over The Air Activation. More... | |
bool | armLwIsEnableOtaa (arm_t *arm) |
Get if Over The Air Activation is enable. More... | |
void | armLwEnableRxWindows (arm_t *arm, bool enable) |
Enable/Disable Rx windows. More... | |
bool | armLwIsEnableRxWindows (arm_t *arm) |
Get if Rx windows is enable. More... | |
void | armLwEnableTxAdaptiveSpeed (arm_t *arm, bool enable) |
Enable/Disable Tx Adaptive Speed. More... | |
bool | armLwIsEnableTxAdaptiveSpeed (arm_t *arm) |
Get if Tx Adaptive Speed is enable. More... | |
void | armLwEnableDutyCycle (arm_t *arm, bool enable) |
Enable/Disable Duty Cycle. More... | |
bool | armLwIsEnableDutyCycle (arm_t *arm) |
Get if Duty Cycle is enable. More... | |
void | armLwEnableTxAdaptiveChannel (arm_t *arm, bool enable) |
Enable/Disable Tx Adaptive Channel. More... | |
bool | armLwIsEnableTxAdaptiveChannel (arm_t *arm) |
Get if Tx Adaptive Channel is enable. More... | |
void | armLwEnableRx2Adaptive (arm_t *arm, bool enable) |
Enable/Disable Rx2 windows Adaptive. More... | |
bool | armLwIsEnableRx2Adaptive (arm_t *arm) |
Get if Rx2 windows Adaptive is enable. More... | |
armError_t | armLwIds (arm_t *arm, uint32_t *devAddr, uint64_t *devEui, uint64_t *appEui, uint128_t *appKey, uint128_t *nwkSKey, uint128_t *appSKey) |
Get the IDs. More... | |
#define ARM_LW_IS_UNCONFIRMED | ( | val | ) | ((val)<=0) |
Macro to know if the frame is unconfirmed or not.
Can you use this with armLwGetConfirmedFrame() and armLwSetConfirmedFrame().
#define ARM_LW_UNCONFIRMED | ( | val | ) | ((-1)*(val)) |
Macro to set unconfirmed frame.
Can you use this with armLwSetConfirmedFrame() and armLwGetConfirmedFrame().
void armLwEnableDutyCycle | ( | arm_t * | arm, |
bool | enable | ||
) |
Enable/Disable Duty Cycle.
This function is supported by:
arm | Pointer to your ARM structure. |
enable | true to enable \b Duty Cycle or false to disable. |
void armLwEnableOtaa | ( | arm_t * | arm, |
bool | enable | ||
) |
Enable/Disable Over The Air Activation.
This function is supported by:
arm | Pointer to your ARM structure. |
enable | true to enable Over The Air Activation or false to disable. |
void armLwEnableRx2Adaptive | ( | arm_t * | arm, |
bool | enable | ||
) |
Enable/Disable Rx2 windows Adaptive.
This function is supported by:
arm | Pointer to your ARM structure. |
enable | true to enable Rx2 windows Adaptive or false to disable. In the case where enable is true, the ARM will ignore the parameter rx2Sf and rx2Channel of the function armLwSetRadio(). |
void armLwEnableRxWindows | ( | arm_t * | arm, |
bool | enable | ||
) |
Enable/Disable Rx windows.
This function is supported by:
arm | Pointer to your ARM structure. |
enable | true to enable Rx windows or false to disable. In the case where enable is true, the ARM will ignore the parameters rx2Sf and rx2Channel of the function armLwSetRadio(). |
void armLwEnableTxAdaptiveChannel | ( | arm_t * | arm, |
bool | enable | ||
) |
Enable/Disable Tx Adaptive Channel.
This function is supported by:
arm | Pointer to your ARM structure. |
enable | true to enable Tx Adaptive Channel or false to disable. In the case where enable is true, the ARM will ignore the parameter txChannel of the function armLwSetRadio(). |
void armLwEnableTxAdaptiveSpeed | ( | arm_t * | arm, |
bool | enable | ||
) |
Enable/Disable Tx Adaptive Speed.
This function is supported by:
arm | Pointer to your ARM structure. |
enable | true to enable Tx Adaptive Speed or false to disable. In the case where enable is true, the ARM will ignore the parameters power and txSf of the function armLwSetRadio(). |
int8_t armLwGetConfirmedFrame | ( | arm_t * | arm | ) |
Get the setup of confirmed frame.
This function is supported by:
arm | Pointer to your ARM structure. |
eg:
or (this is same thing):
uint8_t armLwGetPortField | ( | arm_t * | arm | ) |
Get the port field.
This function is supported by:
arm | Pointer to your ARM structure. |
void armLwGetRadio | ( | arm_t * | arm, |
uint8_t * | txChannel, | ||
uint8_t * | power, | ||
uint8_t * | txSf, | ||
uint8_t * | rx2Sf, | ||
uint8_t * | rx2Channel | ||
) |
Get the LoraWan radio configuration.
Please, for more information about parameter consult the documentation of the armLwSetRadio() function.
This function is supported by:
arm | Pointer to your ARM structure. |
txChannel | If the pointer is valid, the txChannel is set. |
power | If the pointer is valid, the power is set. |
txSf | If the pointer is valid, the txSf is set. |
rx2Sf | If the pointer is valid, the rx2Sf is set. |
rx2Channel | If the pointer is valid, the rx2Channel is set. |
armError_t armLwIds | ( | arm_t * | arm, |
uint32_t * | devAddr, | ||
uint64_t * | devEui, | ||
uint64_t * | appEui, | ||
uint128_t * | appKey, | ||
uint128_t * | nwkSKey, | ||
uint128_t * | appSKey | ||
) |
Get the IDs.
This function is supported by:
arm | Pointer to your ARM structure. |
devAddr | If the pointer is valid, the devAddr is set. |
devEui | If the pointer is valid, the devEui is set. |
appEui | If the pointer is valid, the appEui is set. |
appKey | If the pointer is valid, the appKey is set. |
nwkSKey | If the pointer is valid, the nwkSKey is set. |
appSKey | If the pointer is valid, the appSKey is set. |
bool armLwIsEnableDutyCycle | ( | arm_t * | arm | ) |
Get if Duty Cycle is enable.
This function is supported by:
arm | Pointer to your ARM structure. |
bool armLwIsEnableOtaa | ( | arm_t * | arm | ) |
Get if Over The Air Activation is enable.
This function is supported by:
arm | Pointer to your ARM structure. |
bool armLwIsEnableRx2Adaptive | ( | arm_t * | arm | ) |
Get if Rx2 windows Adaptive is enable.
This function is supported by:
arm | Pointer to your ARM structure. |
bool armLwIsEnableRxWindows | ( | arm_t * | arm | ) |
Get if Rx windows is enable.
This function is supported by:
arm | Pointer to your ARM structure. |
bool armLwIsEnableTxAdaptiveChannel | ( | arm_t * | arm | ) |
Get if Tx Adaptive Channel is enable.
This function is supported by:
arm | Pointer to your ARM structure. |
bool armLwIsEnableTxAdaptiveSpeed | ( | arm_t * | arm | ) |
Get if Tx Adaptive Speed is enable.
This function is supported by:
arm | Pointer to your ARM structure. |
armError_t armLwSetConfirmedFrame | ( | arm_t * | arm, |
int8_t | nbFrame | ||
) |
Enable/Disable and set the confirmed frame.
This function is supported by:
arm | Pointer to your ARM structure. |
nbFrame | the value available:
|
eg:
or (this is same thing):
void armLwSetPortField | ( | arm_t * | arm, |
uint8_t | port | ||
) |
Set the port field.
This function is supported by:
arm | Pointer to your ARM structure. |
port | the value available:
|
armError_t armLwSetRadio | ( | arm_t * | arm, |
uint8_t | txChannel, | ||
uint8_t | power, | ||
uint8_t | txSf, | ||
uint8_t | rx2Sf, | ||
uint8_t | rx2Channel | ||
) |
Setup the LoraWan radio configuration.
For more information, please consulate Lora radio page.
This function is supported by:
txSf
or power
is not set to 0. txChannel
is not set to 0. rx2Sf
or rx2Channel
is not set to 0.arm | Pointer to your ARM structure. |
txChannel | the emission channel.
|
power | the output power.
|
txSf | the emission spreading factor.
|
rx2Sf | the Rx2 spreading factor.
|
rx2Channel | the Rx2 channel.
|