Definition: Returns a timer ID to be used before starting a timer. Timer ID is taken from common software timer free pool.
Syntax
StackRetStatus_t SwTimerCreate(uint8_t *timerId);
Input Parameters
Parameter Name | Parameter Type | Description |
---|---|---|
timerId |
uint8_t |
Timer ID of the item |
Return Type and Values
Parameter Name |
Parameter Type |
Description |
---|---|---|
|
ENUM |
List of enumerated values for return status |
Return Value |
Reason |
---|---|
LORAWAN_SUCCESS |
New timerId is allocated |
LORAWAN_RESOURCE_UNAVAILABLE |
There is no more timerId to allocate |
API Type – Synchronous