📄 ztcprimitivehandlerothercomplexprimitive.h
字号:
/******************************************************************************
* This file exposes the functionality of ZTC Primitive handler module.
*
*
* (c) Copyright 2006, Freescale, Inc. All rights reserved.
*
* Freescale Semiconductor Confidential Proprietary
*
* No part of this document must be reproduced in any form - including copied,
* transcribed, printed or by any electronic means - without specific written
* permission from Freescale Semiconductor Danmark A/S.
*
******************************************************************************/
#if ( gZtcIncluded_d == 1 )
#ifndef _ZTCPRIMITIVEHANDLEROTHERCOMPLEXPRIMITIVE_H_
#define _ZTCPRIMITIVEHANDLEROTHERCOMPLEXPRIMITIVE_H_
/******************************************************************************
*******************************************************************************
* Public macros
*******************************************************************************
******************************************************************************/
/******************************************************************************
* Sends the other catogery of complex primitives to SAP
*
* Interface assumptions:
* None
*
* The routine limitations.
* None
*
* Return value:
* None
*
* Effects on global data.
* None
*
* Source of algorithm used.
* None
*
* Revison history:
*
* date Author Comments
* ------ ------ --------
* 240506 LS, Updated
*****************************************************************************/
#define ZTCPrimHandle_SendOtherComplexPrimToSAP( pMsgToSend, pMsgReceived, \
msgId ) gaOtherComplexPrimitiveHandlerList[ msgId ].pfSendToSAP( pMsgToSend,\
pMsgReceived )
/******************************************************************************
* Stores the other catogery of complex primitives in ZTC buffer to send it to
* Test client
*
* Interface assumptions:
* None
*
* The routine limitations.
* None
*
* Return value:
* None
*
* Effects on global data.
* None
*
* Source of algorithm used.
* None
*
* Revison history:
*
* date Author Comments
* ------ ------ --------
* 240306 LS, Updated
*****************************************************************************/
#define ZTCPrimHandle_StoreOtherComplexPrimInZTCQueue( pMsg, msgId ) \
gaOtherComplexPrimitiveHandlerList[ msgId ].pfStoreInZTCQueue( pMsg )
/******************************************************************************
*******************************************************************************
* Public prototypes
*******************************************************************************
******************************************************************************/
extern const uint8_t gaAttributeDataLength_c[];
/******************************************************************************
*******************************************************************************
* Public type definitions
*******************************************************************************
******************************************************************************/
/* Type definition for the complex primitive to send it to the SAP */
typedef uint8_t ( * pfSendOtherComplexPrimitiveToSap_t )( void* , void* );
/* Type definition for the complex primitive to send it to test client */
typedef uint8_t ( * pfStoreOtherComplexPrimitiveInZTCQueue_t )( void* );
typedef struct otherComplexPrimitive_tag{
pfSendOtherComplexPrimitiveToSap_t pfSendToSAP;
pfStoreOtherComplexPrimitiveInZTCQueue_t pfStoreInZTCQueue;
}otherComplexPrimitive_t;
/* Enums for complex primitives (special) */
enum{
gStartIdOfOtherComplexPrim_c = gEndIdOfUtilitySupport_c,
gNwkScanConfId_c = gStartIdOfOtherComplexPrim_c,
gNwkBeaconNotifyIndId_c,
gMatchDescReqId_c,
gEndDevBindReqId_c,
gZTC_KVPDataReqId_c,
gZTC_AF_KVPAggregationId_c,
gZTC_AFMsgAggregationId_c,
gZTC_AF_KVPDataIndId_c,
gSimpleDescRespId_c,
gEndIdOfOtherComplexPrim_c
};
/******************************************************************************
*******************************************************************************
* Public memory declarations
*******************************************************************************
******************************************************************************/
extern const otherComplexPrimitive_t gaOtherComplexPrimitiveHandlerList[];
/******************************************************************************
*******************************************************************************
* Public functions
*******************************************************************************
******************************************************************************/
/******************************************************************************
* Copies the simple descriptor content from the source memory location to
* the destination memory location.
*
* Interface assumptions:
* None
*
* The routine limitations.
* None
*
* Return value:
* Returns the length of the simpel descriptor
*
* Effects on global data.
* None
*
* Source of algorithm used.
* None
*
* Revison history:
*
* date Author Comments
* ------ ------ --------
* 240306 LS, Updated
*****************************************************************************/
uint8_t ZTCPrimHandle_CopySimpleDesc
(
uint8_t* pDst, /* IN : Destination memory location to copy the Simple Des */
const uint8_t* const pSrc /* IN : Source memory location to get the details of Simple
Des */
);
#endif _ZTCPRIMITIVEHANDLEROTHERCOMPLEXPRIMITIVE_H_
#endif /* ( gZtcIncluded_d == 1 ) */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -