TI BLE5-Stack API Documentation  9.11.01
Macros
ICall Constants

Macros

#define ICALL_CUSTOM_INIT_PARAMS   { USER0_CFG }
 
#define ICALL_ERRNO_CORRUPT_MSG   -6
 ICall function return value for corrupt message error. More...
 
#define ICALL_ERRNO_INVALID_FUNCTION   -2
 ICall function return value in case the function id is unknown to the registered handler of the service. More...
 
#define ICALL_ERRNO_INVALID_PARAMETER   -3
 ICall function return value for invalid parameter value. More...
 
#define ICALL_ERRNO_INVALID_SERVICE   -1
 ICall function return value in case the service corresponding to a passed service id is not registered and hence is unknown. More...
 
#define ICALL_ERRNO_NO_RESOURCE   -4
 ICall function return value for no resource error. More...
 
#define ICALL_ERRNO_NOMSG   2
 ICall function return value for no message error. More...
 
#define ICALL_ERRNO_OVERFLOW   -7
 ICall function return value for counter overflow. More...
 
#define ICALL_ERRNO_SUCCESS   0
 ICall function return value for successful operation. More...
 
#define ICALL_ERRNO_TIMEOUT   1
 ICall function return value for timeout error. More...
 
#define ICALL_ERRNO_UNDERFLOW   -8
 ICall function return value for counter underflow. More...
 
#define ICALL_ERRNO_UNKNOWN_THREAD   -5
 ICall function return value in case the calling thread context is not a registered thread, or the entity id passed is not a registered entity. More...
 
#define ICALL_INVALID_ENTITY_ID   0xffu
 Entity ID used to indicate invalid entity. More...
 
#define ICALL_INVALID_TIMER_ID   NULL
 Timer ID used to indicate invalid ID. More...
 
#define ICALL_LITE_DIRECT_API_DONE_CMD_ID   0x42
 Message CMD ID to signal DIRECT_API CMD is done. More...
 
#define ICALL_MSG_EVENT_ID   Event_Id_31
 
#define ICALL_MSG_FORMAT_1ST_CHAR_TASK_ID   1
 Message format that requires the first byte to be replaced with the src task ID. More...
 
#define ICALL_MSG_FORMAT_3RD_CHAR_TASK_ID   2
 Message format that requires the third byte to be replaced with the src task ID. More...
 
#define ICALL_MSG_FORMAT_DIRECT_API_ID   3
 Message format indicated a direct API call. More...
 
#define ICALL_MSG_FORMAT_KEEP   0
 
#define ICALL_MSG_FUNC_GET_LOCAL_MSG_ENTITY_ID   0
 Messaging service function id for translating ICall_entityID to locally understandable id. More...
 
#define ICALL_SEMAPHORE_MODE_BINARY   1
 Binary semaphore mode. More...
 
#define ICALL_SEMAPHORE_MODE_COUNTING   0
 Counting semaphore mode. More...
 
#define ICALL_SERVICE_CLASS_BLE   0x0010
 BLE service class enumerated value. More...
 
#define ICALL_SERVICE_CLASS_BLE_BOARD   0x0088
 BLE Board dependent service class. More...
 
#define ICALL_SERVICE_CLASS_BLE_MSG   0x0050
 BLE stack message delivery service. More...
 
#define ICALL_SERVICE_CLASS_CRYPTO   0x0080
 Crypto service class. More...
 
#define ICALL_SERVICE_CLASS_DUMMY   0x0100
 
#define ICALL_SERVICE_CLASS_DUMMY_BOARD   0x0200
 Dummy stack board service class enumeration. More...
 
#define ICALL_SERVICE_CLASS_MASK   0xFFF8
 Bit mask for recommended service id enumeration. More...
 
#define ICALL_SERVICE_CLASS_NPI   0x0038
 NPI service class enumerated value. More...
 
#define ICALL_SERVICE_CLASS_PRIMITIVE   0x0008
 Service class enumerated value for primitive service. More...
 
#define ICALL_SERVICE_CLASS_RADIO   0x0098
 Radio service class. More...
 
#define ICALL_SERVICE_CLASS_REMOTI_RCN   0x0028
 RemoTI network layer service class enumerated value. More...
 
#define ICALL_SERVICE_CLASS_REMOTI_RTI   0x0020
 RemoTI RTI interface service class enumerated value. More...
 
#define ICALL_SERVICE_CLASS_TIMAC   0x0018
 TIMAC service class enumerated value. More...
 
#define ICALL_SERVICE_CLASS_TIMAC_BOARD   0x0090
 TIMAC Board dependent service class. More...
 
#define ICALL_SERVICE_CLASS_ZSTACK   0x0030
 ZStack service class enumerated value. More...
 
#define ICALL_SERVICE_INSTANCE_MASK   0x0007
 Bit mask for recommended service id enumeration. More...
 
#define ICALL_TASK_PRIORITIES   { 5 }
 
#define ICALL_TASK_STACK_SIZES   { 1500 }
 
#define ICALL_TIMEOUT_FOREVER   0xfffffffful
 Time period that indicates infinite time. More...
 
#define ICALL_TIMEOUT_PREDEFINE   5000
 Time period that indicates timeout define at build time default is 5s. More...
 
#define ICALL_WAITMATCH_EVENT_ID   Event_Id_29
 
#define USER0_CFG   &user0Cfg
 user config More...
 

Detailed Description

Macro Definition Documentation

§ ICALL_CUSTOM_INIT_PARAMS

#define ICALL_CUSTOM_INIT_PARAMS   { USER0_CFG }

Initializer for custom initialization parameters. Each element of the array corresponds to initialization parameter (a pointer) specific to the image to be passed to the entry function defined in ICALL_ADDR_MAPS initializer.

§ ICALL_ERRNO_CORRUPT_MSG

#define ICALL_ERRNO_CORRUPT_MSG   -6

ICall function return value for corrupt message error.

§ ICALL_ERRNO_INVALID_FUNCTION

#define ICALL_ERRNO_INVALID_FUNCTION   -2

ICall function return value in case the function id is unknown to the registered handler of the service.

§ ICALL_ERRNO_INVALID_PARAMETER

#define ICALL_ERRNO_INVALID_PARAMETER   -3

ICall function return value for invalid parameter value.

§ ICALL_ERRNO_INVALID_SERVICE

#define ICALL_ERRNO_INVALID_SERVICE   -1

ICall function return value in case the service corresponding to a passed service id is not registered and hence is unknown.

§ ICALL_ERRNO_NO_RESOURCE

#define ICALL_ERRNO_NO_RESOURCE   -4

ICall function return value for no resource error.

§ ICALL_ERRNO_NOMSG

#define ICALL_ERRNO_NOMSG   2

ICall function return value for no message error.

§ ICALL_ERRNO_OVERFLOW

#define ICALL_ERRNO_OVERFLOW   -7

ICall function return value for counter overflow.

§ ICALL_ERRNO_SUCCESS

#define ICALL_ERRNO_SUCCESS   0

ICall function return value for successful operation.

§ ICALL_ERRNO_TIMEOUT

#define ICALL_ERRNO_TIMEOUT   1

ICall function return value for timeout error.

§ ICALL_ERRNO_UNDERFLOW

#define ICALL_ERRNO_UNDERFLOW   -8

ICall function return value for counter underflow.

§ ICALL_ERRNO_UNKNOWN_THREAD

#define ICALL_ERRNO_UNKNOWN_THREAD   -5

ICall function return value in case the calling thread context is not a registered thread, or the entity id passed is not a registered entity.

§ ICALL_INVALID_ENTITY_ID

#define ICALL_INVALID_ENTITY_ID   0xffu

Entity ID used to indicate invalid entity.

§ ICALL_INVALID_TIMER_ID

#define ICALL_INVALID_TIMER_ID   NULL

Timer ID used to indicate invalid ID.

§ ICALL_LITE_DIRECT_API_DONE_CMD_ID

#define ICALL_LITE_DIRECT_API_DONE_CMD_ID   0x42

Message CMD ID to signal DIRECT_API CMD is done.

§ ICALL_MSG_EVENT_ID

#define ICALL_MSG_EVENT_ID   Event_Id_31

Event reserved to signal for icall message in between application and services.

Used when ICALL_EVENTS compile option is enabled only.

§ ICALL_MSG_FORMAT_1ST_CHAR_TASK_ID

#define ICALL_MSG_FORMAT_1ST_CHAR_TASK_ID   1

Message format that requires the first byte to be replaced with the src task ID.

§ ICALL_MSG_FORMAT_3RD_CHAR_TASK_ID

#define ICALL_MSG_FORMAT_3RD_CHAR_TASK_ID   2

Message format that requires the third byte to be replaced with the src task ID.

§ ICALL_MSG_FORMAT_DIRECT_API_ID

#define ICALL_MSG_FORMAT_DIRECT_API_ID   3

Message format indicated a direct API call.

§ ICALL_MSG_FORMAT_KEEP

#define ICALL_MSG_FORMAT_KEEP   0

Message format that requires no change

§ ICALL_MSG_FUNC_GET_LOCAL_MSG_ENTITY_ID

#define ICALL_MSG_FUNC_GET_LOCAL_MSG_ENTITY_ID   0

Messaging service function id for translating ICall_entityID to locally understandable id.

§ ICALL_SEMAPHORE_MODE_BINARY

#define ICALL_SEMAPHORE_MODE_BINARY   1

Binary semaphore mode.

§ ICALL_SEMAPHORE_MODE_COUNTING

#define ICALL_SEMAPHORE_MODE_COUNTING   0

Counting semaphore mode.

§ ICALL_SERVICE_CLASS_BLE

#define ICALL_SERVICE_CLASS_BLE   0x0010

BLE service class enumerated value.

§ ICALL_SERVICE_CLASS_BLE_BOARD

#define ICALL_SERVICE_CLASS_BLE_BOARD   0x0088

BLE Board dependent service class.

This service is intended for BLE stack software's use only.

§ ICALL_SERVICE_CLASS_BLE_MSG

#define ICALL_SERVICE_CLASS_BLE_MSG   0x0050

BLE stack message delivery service.

§ ICALL_SERVICE_CLASS_CRYPTO

#define ICALL_SERVICE_CLASS_CRYPTO   0x0080

Crypto service class.

Crypto service is intended for stack software to use.

§ ICALL_SERVICE_CLASS_DUMMY

#define ICALL_SERVICE_CLASS_DUMMY   0x0100

Dummy stack service class enumeration. Dummy stack service is used as an example stack port on top of ICall module.

§ ICALL_SERVICE_CLASS_DUMMY_BOARD

#define ICALL_SERVICE_CLASS_DUMMY_BOARD   0x0200

Dummy stack board service class enumeration.

Dummy stack board service is used as an example board service for a stack.

§ ICALL_SERVICE_CLASS_MASK

#define ICALL_SERVICE_CLASS_MASK   0xFFF8

Bit mask for recommended service id enumeration.

These bits can be used to identify a service class.

§ ICALL_SERVICE_CLASS_NPI

#define ICALL_SERVICE_CLASS_NPI   0x0038

NPI service class enumerated value.

§ ICALL_SERVICE_CLASS_PRIMITIVE

#define ICALL_SERVICE_CLASS_PRIMITIVE   0x0008

Service class enumerated value for primitive service.

Primitive service includes heap service and messaging service.

§ ICALL_SERVICE_CLASS_RADIO

#define ICALL_SERVICE_CLASS_RADIO   0x0098

Radio service class.

Radio service is intended for stack software to use.

§ ICALL_SERVICE_CLASS_REMOTI_RCN

#define ICALL_SERVICE_CLASS_REMOTI_RCN   0x0028

RemoTI network layer service class enumerated value.

§ ICALL_SERVICE_CLASS_REMOTI_RTI

#define ICALL_SERVICE_CLASS_REMOTI_RTI   0x0020

RemoTI RTI interface service class enumerated value.

§ ICALL_SERVICE_CLASS_TIMAC

#define ICALL_SERVICE_CLASS_TIMAC   0x0018

TIMAC service class enumerated value.

§ ICALL_SERVICE_CLASS_TIMAC_BOARD

#define ICALL_SERVICE_CLASS_TIMAC_BOARD   0x0090

TIMAC Board dependent service class.

This service is intended for TIMAC stack software's use only.

§ ICALL_SERVICE_CLASS_ZSTACK

#define ICALL_SERVICE_CLASS_ZSTACK   0x0030

ZStack service class enumerated value.

§ ICALL_SERVICE_INSTANCE_MASK

#define ICALL_SERVICE_INSTANCE_MASK   0x0007

Bit mask for recommended service id enumeration.

These bits can be used to identify an instance among stack instances of the same service class.

§ ICALL_TASK_PRIORITIES

#define ICALL_TASK_PRIORITIES   { 5 }

Initializer for an array of thread priorities. Each element of the array corresponds to TI-RTOS specific thread priority value given to a thread to be created per the entry function defined in ICALL_ADDR_MAPS initializer, in the same sequence.

§ ICALL_TASK_STACK_SIZES

#define ICALL_TASK_STACK_SIZES   { 1500 }

Initializer for an array of thread stack sizes. Each element of the array corresponds to stack depth allocated to a thread to be created per the entry function defined in ICALL_ADDR_MAPS initializer, in the same sequence.

§ ICALL_TIMEOUT_FOREVER

#define ICALL_TIMEOUT_FOREVER   0xfffffffful

Time period that indicates infinite time.

§ ICALL_TIMEOUT_PREDEFINE

#define ICALL_TIMEOUT_PREDEFINE   5000

Time period that indicates timeout define at build time default is 5s.

§ ICALL_WAITMATCH_EVENT_ID

#define ICALL_WAITMATCH_EVENT_ID   Event_Id_29

Event reserved to signal a wait match period has ended and the caller may continue execution.

Note
the Event_Id_30 is usually reserved for the the application internal queue processing.

§ USER0_CFG

#define USER0_CFG   &user0Cfg

user config

© Copyright 1995-2025, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale