Defines

Macros

#define ARRAY_LEN(array)   (sizeof((array))/sizeof((array)[0]))
 Get the number of elements within an array, give also number of rows in a 2-D array. More...
 

Typedefs

typedef uint16_t ke_msg_id_t
 
typedef uint16_t ke_task_id_t
 Task Identifier. Composed by the task type and the task index. More...
 
typedef uint8_t ke_state_t
 Task State. More...
 
typedef enum ke_msg_status_tag ke_msg_status_t
 ke_msg_status More...
 

Enumerations

enum  ke_msg_status_tag {
  KE_MSG_CONSUMED = 0,
  KE_MSG_NO_FREE,
  KE_MSG_SAVED
}
 ke_msg_status More...
 

Detailed Description

Macro Definition Documentation

◆ ARRAY_LEN

#define ARRAY_LEN (   array)    (sizeof((array))/sizeof((array)[0]))

Get the number of elements within an array, give also number of rows in a 2-D array.

Definition at line 58 of file ble_msg.h.

Typedef Documentation

◆ ke_msg_id_t

typedef uint16_t ke_msg_id_t

Message Identifier. The number of messages is limited to 0xFFFF. The message ID is divided in two parts: bits[15~8]: task index (no more than 255 tasks support) bits[7~0]: message index(no more than 255 messages per task)

Definition at line 64 of file ble_msg.h.

◆ ke_msg_status_t

ke_msg_status

◆ ke_state_t

typedef uint8_t ke_state_t

Task State.

Definition at line 70 of file ble_msg.h.

◆ ke_task_id_t

typedef uint16_t ke_task_id_t

Task Identifier. Composed by the task type and the task index.

Definition at line 67 of file ble_msg.h.

Enumeration Type Documentation

◆ ke_msg_status_tag

ke_msg_status

Enumerator
KE_MSG_CONSUMED 

consumed, msg and ext are freed by the kernel

KE_MSG_NO_FREE 

consumed, nothing is freed by the kernel

KE_MSG_SAVED 

not consumed, will be pushed in the saved queue

Definition at line 73 of file ble_msg.h.