5.2.1.9 APS_RegisterEndpointReq_t Structure
Syntax
typedef struct { /** \cond SERVICE_FIELDS **/ struct { void *next; /*!< Used for queue support. */ bool noIndication; /*!< Disable indication to upper-layer. */ } service; /** \endcond **/ /** A pointer to a simple descriptor */ SimpleDescriptor_t *simpleDescriptor; /** A pointer to an indication callback function, which is called when data is received addressed to * the endpoint; conforms to APSDE-DATA.indication handler defined in ZigBee spec r19, 2.2.4.1.3.1, page 30. */ void (*APS_DataInd)(APS_DataInd_t *ind); /** The status of endpoint registration; is written by the stack to report the result of the operation */ APS_Status_t status; } APS_RegisterEndpointReq_t;
Description
The APS_RegisterEndpointReq_t
structure, defined in the apsdeEndpoint.h
and aps.h
files, specifies the parameters for the APS_RegisterEndpointReq()
function. To register a new endpoint, the user must pass a pointer to an instance of this type as an argument to the APS_RegisterEndpointReq()
function. The structure includes the simple descriptor configuration, a pointer to the data indication callback and the status field.