| Demo HCI Implementation for WiMOD-LR Devices V2.0.3

WiMOD_SAP_RLT_IDs.h
Go to the documentation of this file.
1 //------------------------------------------------------------------------------
31 //------------------------------------------------------------------------------
32
33
34 #ifndef ARDUINO_SAP_WIMOD_SAP_RLT_IDS_H_
35 #define ARDUINO_SAP_WIMOD_SAP_RLT_IDS_H_
36
37 //------------------------------------------------------------------------------
38 //
39 // Section Includes Files
40 //
41 //------------------------------------------------------------------------------
42
43 #include "utils/WMDefs.h"
44
45 //------------------------------------------------------------------------------
46 //
47 // Service Access Point Identifier
48 //
49 //------------------------------------------------------------------------------
50
52 #define RLT_SAP_ID 0x02
53
54
55
56 //------------------------------------------------------------------------------
57 //
58 // Radio Link Services Identifier
59 //
60 //------------------------------------------------------------------------------
62 #define RLT_MSG_START_REQ 0x01
63 #define RLT_MSG_START_RSP 0x02
64 #define RLT_MSG_STOP_REQ 0x03
65 #define RLT_MSG_STOP_RSP 0x04
66 #define RLT_MSG_STATUS_IND 0x06
67
69 //------------------------------------------------------------------------------
70 //
71 // RLT Status Codes
72 //
73 //------------------------------------------------------------------------------
75
76 #define RLT_STATUS_OK 0x00
77 #define RLT_STATUS_ERROR 0x01
78 #define RLT_STATUS_CMD_NOT_SUPPORTED 0x02
79 #define RLT_STATUS_WRONG_PARAMETER 0x03
80 #define RLT_STATUS_WRONG_RADIO_MODE 0x04
81 #define RLT_STATUS_WRONG_DEVICECONFIG 0x05
82
84
85 //------------------------------------------------------------------------------
86 //
87 // structures
88 //
89 //------------------------------------------------------------------------------
90
94 typedef enum TRLT_TestMode {
95 RLT_TestMode_Single = 0,
96 RLT_TestMode_Repeated = 1,
97 } TRLT_TestMode;
98
102 typedef struct TWiMODLR_RLT_Parameter
103 {
104 UINT8 DestGroupAddress;
105 UINT16 DestDevAddress;
106 UINT8 PacketSize;
107 UINT16 NumPackets;
108 TRLT_TestMode TestMode;
109 } TWiMODLR_RLT_Parameter;
110
114 typedef struct TWiMODLR_RLT_Status
115 {
116 UINT8 TestStatus;
117 UINT16 LocalTxCounter;
118 UINT16 LocalRxCounter;
119 UINT16 PeerTxCounter;
120 UINT16 PeerRxCounter;
121 UINT16 LocalRSSI;
122 UINT16 PeerRSSI;
123 UINT8 LocalSNR;
124 UINT8 PeerSNR;
125 } TWiMODLR_RLT_Status;
126
127
128
129
130 #endif /* ARDUINO_SAP_WIMOD_SAP_RLT_IDS_H_ */
TWiMODLR_RLT_Status
struct TWiMODLR_RLT_Status TWiMODLR_RLT_Status
Structure containing a general RadioLink HCI message.
TWiMODLR_RLT_Status::LocalSNR
UINT8 LocalSNR
Definition: WiMOD_SAP_RLT_IDs.h:123
TWiMODLR_RLT_Parameter::DestGroupAddress
UINT8 DestGroupAddress
Definition: WiMOD_SAP_RLT_IDs.h:104
RLT_TestMode_Repeated
@ RLT_TestMode_Repeated
Definition: WiMOD_SAP_RLT_IDs.h:96
TRLT_TestMode
TRLT_TestMode
RTL TestModes.
Definition: WiMOD_SAP_RLT_IDs.h:94
RLT_TestMode_Single
@ RLT_TestMode_Single
Definition: WiMOD_SAP_RLT_IDs.h:95
TWiMODLR_RLT_Status::PeerRSSI
UINT16 PeerRSSI
Definition: WiMOD_SAP_RLT_IDs.h:122
TWiMODLR_RLT_Status::PeerSNR
UINT8 PeerSNR
Definition: WiMOD_SAP_RLT_IDs.h:124
TWiMODLR_RLT_Status::LocalRSSI
UINT16 LocalRSSI
Definition: WiMOD_SAP_RLT_IDs.h:121
TWiMODLR_RLT_Status
Structure containing a general RadioLink HCI message.
Definition: WiMOD_SAP_RLT_IDs.h:114
TWiMODLR_RLT_Parameter
Structure containing a general RadioLink HCI message.
Definition: WiMOD_SAP_RLT_IDs.h:102
TWiMODLR_RLT_Parameter
struct TWiMODLR_RLT_Parameter TWiMODLR_RLT_Parameter
Structure containing a general RadioLink HCI message.
TWiMODLR_RLT_Status::LocalRxCounter
UINT16 LocalRxCounter
Definition: WiMOD_SAP_RLT_IDs.h:118
TWiMODLR_RLT_Parameter::PacketSize
UINT8 PacketSize
Definition: WiMOD_SAP_RLT_IDs.h:106
TWiMODLR_RLT_Parameter::DestDevAddress
UINT16 DestDevAddress
Definition: WiMOD_SAP_RLT_IDs.h:105
TWiMODLR_RLT_Parameter::TestMode
TRLT_TestMode TestMode
Definition: WiMOD_SAP_RLT_IDs.h:108
TWiMODLR_RLT_Status::LocalTxCounter
UINT16 LocalTxCounter
Definition: WiMOD_SAP_RLT_IDs.h:117
TWiMODLR_RLT_Status::PeerTxCounter
UINT16 PeerTxCounter
Definition: WiMOD_SAP_RLT_IDs.h:119
TWiMODLR_RLT_Status::PeerRxCounter
UINT16 PeerRxCounter
Definition: WiMOD_SAP_RLT_IDs.h:120
TWiMODLR_RLT_Parameter::NumPackets
UINT16 NumPackets
Definition: WiMOD_SAP_RLT_IDs.h:107
TWiMODLR_RLT_Status::TestStatus
UINT8 TestStatus
Definition: WiMOD_SAP_RLT_IDs.h:116