3.4.2.1 SwTimerCreate

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

Table 3-33. Input Parameters
Parameter NameParameter TypeDescription
timerIduint8_tTimer ID of the item

Return Type and Values

Parameter Name

Parameter Type

Description

StackRetStatus_t

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