34 #define TL_BLECMD_PKT_TYPE ( 0x01 ) 35 #define TL_ACL_DATA_PKT_TYPE ( 0x02 ) 36 #define TL_BLEEVT_PKT_TYPE ( 0x04 ) 37 #define TL_OTCMD_PKT_TYPE ( 0x08 ) 38 #define TL_OTRSP_PKT_TYPE ( 0x09 ) 39 #define TL_CLICMD_PKT_TYPE ( 0x0A ) 40 #define TL_OTNOT_PKT_TYPE ( 0x0C ) 41 #define TL_OTACK_PKT_TYPE ( 0x0D ) 42 #define TL_CLINOT_PKT_TYPE ( 0x0E ) 43 #define TL_CLIACK_PKT_TYPE ( 0x0F ) 44 #define TL_SYSCMD_PKT_TYPE ( 0x10 ) 45 #define TL_SYSRSP_PKT_TYPE ( 0x11 ) 46 #define TL_SYSEVT_PKT_TYPE ( 0x12 ) 47 #define TL_CLIRESP_PKT_TYPE ( 0x15 ) 48 #define TL_M0CMD_PKT_TYPE ( 0x16 ) 49 #define TL_LOCCMD_PKT_TYPE ( 0x20 ) 50 #define TL_LOCRSP_PKT_TYPE ( 0x21 ) 51 #define TL_TRACES_APP_PKT_TYPE ( 0x40 ) 52 #define TL_TRACES_WL_PKT_TYPE ( 0x41 ) 54 #define TL_CMD_HDR_SIZE (4) 55 #define TL_EVT_HDR_SIZE (3) 56 #define TL_EVT_CS_PAYLOAD_SIZE (4) 58 #define TL_BLEEVT_CC_OPCODE (0x0E) 59 #define TL_BLEEVT_CS_OPCODE (0x0F) 60 #define TL_BLEEVT_VS_OPCODE (0xFF) 62 #define TL_BLEEVT_CS_PACKET_SIZE (TL_EVT_HDR_SIZE + sizeof(TL_CsEvt_t)) 63 #define TL_BLEEVT_CS_BUFFER_SIZE (sizeof(TL_PacketHeader_t) + TL_BLEEVT_CS_PACKET_SIZE) 100 typedef PACKED_STRUCT
106 typedef PACKED_STRUCT
113 typedef PACKED_STRUCT
127 typedef PACKED_STRUCT
130 TL_EvtSerial_t evtserial;
137 typedef PACKED_STRUCT
141 uint8_t payload[255];
144 typedef PACKED_STRUCT
150 typedef PACKED_STRUCT
153 TL_CmdSerial_t cmdserial;
159 typedef PACKED_STRUCT
165 } TL_AclDataSerial_t;
167 typedef PACKED_STRUCT
170 TL_AclDataSerial_t AclDataSerial;
171 } TL_AclDataPacket_t;
175 uint8_t *p_BleSpareEvtBuffer;
176 uint8_t *p_SystemSpareEvtBuffer;
177 uint8_t *p_AsynchEvtPool;
178 uint32_t AsynchEvtPoolSize;
179 uint8_t *p_TracesEvtPool;
180 uint32_t TracesEvtPoolSize;
185 uint8_t *p_ThreadOtCmdRspBuffer;
186 uint8_t *p_ThreadCliRspBuffer;
187 uint8_t *p_ThreadNotAckBuffer;
192 uint8_t *p_LldTestsCliCmdRspBuffer;
193 uint8_t *p_LldTestsM0CmdBuffer;
198 uint8_t *p_BleLldCmdRspBuffer;
199 uint8_t *p_BleLldM0CmdBuffer;
204 uint8_t *p_Mac_802_15_4_CmdRspBuffer;
205 uint8_t *p_Mac_802_15_4_NotAckBuffer;
210 uint8_t *p_ZigbeeOtCmdRspBuffer;
211 uint8_t *p_ZigbeeNotAckBuffer;
212 uint8_t *p_ZigbeeNotifRequestBuffer;
222 void (* IoBusAclDataTxAck) ( void );
223 uint8_t *p_cmdbuffer;
224 uint8_t *p_AclDataBuffer;
235 uint8_t *p_cmdbuffer;
246 void TL_Enable(
void );
247 void TL_Init(
void );
252 int32_t TL_BLE_Init(
void* pConf );
253 int32_t TL_BLE_SendCmd( uint8_t* buffer, uint16_t size );
254 int32_t TL_BLE_SendAclData( uint8_t* buffer, uint16_t size );
259 int32_t TL_SYS_Init(
void* pConf );
260 int32_t TL_SYS_SendCmd( uint8_t* buffer, uint16_t size );
266 void TL_OT_SendCmd(
void );
267 void TL_CLI_SendCmd(
void );
270 void TL_THREAD_SendAck (
void );
271 void TL_THREAD_CliSendAck (
void );
278 void TL_LLDTESTS_SendCliCmd(
void );
279 void TL_LLDTESTS_ReceiveCliRsp( TL_CmdPacket_t * Notbuffer );
280 void TL_LLDTESTS_SendCliRspAck(
void );
281 void TL_LLDTESTS_ReceiveM0Cmd( TL_CmdPacket_t * Notbuffer );
282 void TL_LLDTESTS_SendM0CmdAck(
void );
288 void TL_BLE_LLD_SendCliCmd(
void );
289 void TL_BLE_LLD_ReceiveCliRsp( TL_CmdPacket_t * Notbuffer );
290 void TL_BLE_LLD_SendCliRspAck(
void );
291 void TL_BLE_LLD_ReceiveM0Cmd( TL_CmdPacket_t * Notbuffer );
292 void TL_BLE_LLD_SendM0CmdAck(
void );
293 void TL_BLE_LLD_SendCmd(
void );
294 void TL_BLE_LLD_ReceiveRsp( TL_CmdPacket_t * Notbuffer );
295 void TL_BLE_LLD_SendRspAck(
void );
305 void TL_TRACES_Init(
void );
312 void TL_MAC_802_15_4_SendCmd(
void );
315 void TL_MAC_802_15_4_SendAck (
void );
321 void TL_ZIGBEE_SendM4RequestToM0(
void );
322 void TL_ZIGBEE_SendM4AckToM0Notify (
void );
326 void TL_ZIGBEE_SendM4AckToM0Request(
void);
__packed struct @32 TL_EvtPacket_t
This format shall be used for all events (asynchronous and command response) reported by the CPU2 exc...
Common file to utilities.
Contain the BLE HCI Init Configuration.
__packed struct @26 TL_PacketHeader_t
< Packet header
Contain the SYSTEM HCI Init Configuration.
__packed struct @27 TL_CsEvt_t
This the payload of TL_Evt_t for a command status event.
__packed struct @28 TL_CcEvt_t
This the payload of TL_Evt_t for a command complete event.
__packed struct @29 TL_AsynchEvt_t
This the payload of TL_Evt_t for an asynchronous event.