#include <types.h>
#include <nwk.h>
#include <appFramework.h>
#include <macAddr.h>
Go to the source code of this file.
Data Structures | |
| union | APS_Address_t |
| Common APS Address type. More... | |
| struct | APS_AibPermissionsConfiguration_t |
| APS SubLayer Constants. More... | |
| union | APS_AibAttribute_t |
| Types of parameters which can be set to the APS AIB. More... | |
| struct | APS_DataConf_t |
| Parameters structure of the APS_DataConf() function. The APSDE-DATA.confirm primitive. More... | |
| struct | APS_TxOptions_t |
| Describes the options of data transmission. More... | |
| struct | APS_DataReq_t |
| Parameters structure of the APS_DataReq() function. The APSDE-DATA.request primitive. More... | |
| struct | APS_DataInd_t |
| Parameters structure of the APS_DataInd() function The function is determined by certain End Point. The APSDE-DATA.indication primitive. More... | |
| struct | APS_GetConf_t |
| Parameters structure of the APS_GetConf() function. The APSME-GET.confirm primitive. More... | |
| struct | APS_GetReq_t |
| Parameters structure of the APS_GetReq() function. The APSME-GET.request primitive. More... | |
| struct | APS_SetConf_t |
| Parameters structure of the APS_SetConf() function The APSME-SET.confirm primitive. More... | |
| struct | APS_SetReq_t |
| Parameters structure of the APS_SetReq() function The APSME-SET.request primitive. More... | |
| struct | APS_RegisterEndpointReq_t |
| Parameters structure of the APS_RegisterEndpointReq() function. APSME-REGISTER-ENDPOINT.request primitive. More... | |
| struct | APS_UnregisterEndpointReq_t |
| Parameters structure of the APS_UnregisterEndpointReq() function. APSME-UNREGISTER-ENDPOINT.request primitive. More... | |
Defines | |
| #define | APS_MAX_DATA_FRAME_HEADER_LENGTH 12 |
| #define | APS_MAX_DATA_FRAME_FOOTER_LENGTH 0 |
| #define | APS_AFFIX_LENGTH (APS_MAX_DATA_FRAME_HEADER_LENGTH + APS_MAX_DATA_FRAME_FOOTER_LENGTH + NWK_AFFIX_LENGTH) |
| #define | APS_MAX_ASDU_SIZE (NWK_MAX_NSDU_SIZE - APS_MAX_DATA_FRAME_HEADER_LENGTH - APS_MAX_DATA_FRAME_FOOTER_LENGTH) |
| #define | APS_ASDU_OFFSET (NWK_NSDU_OFFSET + APS_MAX_DATA_FRAME_HEADER_LENGTH) |
| #define | APS_BROADCAST_ENDPOINT 0xff |
| #define | APS_ZDO_ENDPOINT 0x00 |
| #define | APS_MIN_USER_ENDPOINT 0x01 |
| #define | APS_MAX_USER_ENDPOINT 0xf0 |
| #define | APS_MIN_RESERVED_ENDPOINT 0xf1 |
| #define | APS_MAX_RESERVED_ENDPOINT 0xfe |
| #define | APS_MAX_UNICAST_SHORT_ADDRESS 0xfff7 |
Enumerations | |
| enum | APS_AddrMode_t { APS_NO_ADDRESS = 0x00, APS_SHORT_ADDRESS = 0x02, APS_EXT_ADDRESS = 0x03 } |
| APS addressing modes. More... | |
| enum | APS_Status_t { APS_SUCCESS_STATUS = 0x00, APS_ASDU_TOO_LONG_STATUS = 0xa0, APS_DEFRAG_DEFERRED_STATUS = 0xa1, APS_DEFRAG_UNSUPPORTED_STATUS = 0xa2, APS_ILLEGAL_REQUEST_STATUS = 0xa3, APS_INVALID_BINDING_STATUS = 0xa4, APS_INVALID_GROUP_STATUS = 0xa5, APS_INVALID_PARAMETER_STATUS = 0xa6, APS_NO_ACK_STATUS = 0xa7, APS_NO_BOUND_DEVICE_STATUS = 0xa8, APS_NO_SHORT_ADDRESS_STATUS = 0xa9, APS_NOT_SUPPORTED_STATUS = 0xaa, APS_SECURED_LINK_KEY_STATUS = 0xab, APS_SECURED_NWK_KEY_STATUS = 0xac, APS_SECURITY_FAIL_STATUS = 0xad, APS_TABLE_FULL_STATUS = 0xae, APS_UNSECURED_STATUS = 0xaf, APS_UNSUPPORTED_ATTRIBUTE_STATUS = 0xb0, APS_NOT_INDICATED_STATUS = 0xb1 } |
| APS status values. More... | |
| enum | APS_AibAttributeId_t { APS_AIB_BINDING_TABLE = 0xc1, APS_AIB_DESIGNATED_COORDINATOR = 0xc2, APS_AIB_CHANNEL_MASK = 0xc3, APS_AIB_USE_EXTENDED_PANID = 0xc4, APS_AIB_GROUP_TABLE = 0xc5, APS_AIB_NONMEMBER_RADIUS = 0xc6, APS_AIB_PERMISSIONS_CONFIGURATION = 0xc7, APS_AIB_USE_INSECURE_JOIN = 0xc8, APS_AIB_INTERFRAME_DELAY = 0xc9, APS_AIB_DEVICE_KEY_PAIR_SET = 0xaa, APS_AIB_TRUST_CENTER_ADDRESS = 0xab, APS_AIB_SECURITY_TIME_OUT_PERIOD = 0xac } |
| APS Information base attributes IDs. More... | |
Functions | |
| void | APS_GetReq (APS_GetReq_t *req) |
| Gets a parameter from AIB. | |
| void | APS_SetReq (APS_SetReq_t *req) |
| Sets a parameter to AIB. | |
| void | APS_RegisterEndpointReq (APS_RegisterEndpointReq_t *req) |
| Registers endpoint to APS. | |
| void | APS_UnregisterEndpointReq (APS_UnregisterEndpointReq_t *req) |
| Unregisters endPoint from APS. | |
| APS_RegisterEndpointReq_t * | APS_GetEndpointList (void) |
| Returns the pointer to APS EndPointList. | |
| void | APS_StopEndpointIndication (Endpoint_t endpoint) |
| Stops APS Data indications to specific endpoint number. | |
| void | APS_ResumeEndpointIndication (Endpoint_t endpoint) |
| Resumes APS Data indications to specific endpoint number. | |
The file describes the public interface and types of APS
Definition in file aps.h.
| #define APS_AFFIX_LENGTH (APS_MAX_DATA_FRAME_HEADER_LENGTH + APS_MAX_DATA_FRAME_FOOTER_LENGTH + NWK_AFFIX_LENGTH) |
| #define APS_ASDU_OFFSET (NWK_NSDU_OFFSET + APS_MAX_DATA_FRAME_HEADER_LENGTH) |
| #define APS_MAX_ASDU_SIZE (NWK_MAX_NSDU_SIZE - APS_MAX_DATA_FRAME_HEADER_LENGTH - APS_MAX_DATA_FRAME_FOOTER_LENGTH) |
| enum APS_AddrMode_t |
APS addressing modes.
Address mode is used in some of APS primitives
Defines APS addressing modes used in some standard primitives
| enum APS_AibAttributeId_t |
APS Information base attributes IDs.
AIB Attribute's ID definition
APS Information base attribute IDs used for AIB management with standard AIB maintenance primitives
| enum APS_Status_t |
APS status values.
Status values in some of the APS primitives
APS status values used in the most part of standard primives except for the security service primitives where APS_SecurityStatus_t is used instead
| APS_RegisterEndpointReq_t* APS_GetEndpointList | ( | void | ) |
Returns the pointer to APS EndPointList.
| [in] | None. |
| void APS_GetReq | ( | APS_GetReq_t * | req | ) |
Gets a parameter from AIB.
| [in] | req | The APSME-GET.request (APS_GetReq_t) primitive pointer. |
| void APS_RegisterEndpointReq | ( | APS_RegisterEndpointReq_t * | req | ) |
Registers endpoint to APS.
| [in] | req | The register endpoint primitive pointer. |
| void APS_ResumeEndpointIndication | ( | Endpoint_t | endpoint | ) |
Resumes APS Data indications to specific endpoint number.
| [in] | endpoint | The registered endpoint number. The 0xff special value means all registered endpoints. |
| void APS_SetReq | ( | APS_SetReq_t * | req | ) |
Sets a parameter to AIB.
Function returns the result of transaction via callback call with confirm (APS_SetConf_t) primitive pointer as parameter
| [in] | req | The APSME-SET.request (APS_SetReq_t) primitive pointer. |
| void APS_StopEndpointIndication | ( | Endpoint_t | endpoint | ) |
Stops APS Data indications to specific endpoint number.
| [in] | endpoint | The registered endpoint number. The 0xff special value means all registered endpoints. |
| void APS_UnregisterEndpointReq | ( | APS_UnregisterEndpointReq_t * | req | ) |
Unregisters endPoint from APS.
| [in] | req | The unregister endpoint primitive pointer. |
1.5.1-p1