| Demo HCI Implementation for WiMOD-LR Devices V1.3.1

- Main Page
- Classes
- Files

- File List
- File Members

WiMOD_SAP_PTS_IDs.h
1 /*
2 * WiMOD_SAP_PTS_IDs.h
3 *
4 * Created on: Jan 4, 2017
5 * Author: tux
6 */
7
9
10 #ifndef ARDUINO_HWTEST_WIMOD_SAP_PTS_IDS_H_
11 #define ARDUINO_HWTEST_WIMOD_SAP_PTS_IDS_H_
12
13
14
15
16 //------------------------------------------------------------------------------
17 //
18 // Section Includes Files
19 //
20 //------------------------------------------------------------------------------
21
22 #include "utils/WMDefs.h"
23 #include "SAP/WiMOD_SAP_DEVMGMT_IDs.h"
24
25 //------------------------------------------------------------------------------
26 //
27 // Service Access Point Identifier
28 //
29 //------------------------------------------------------------------------------
30
32 #define PTS_SAP_ID 0xA1
33
34
35
36 //------------------------------------------------------------------------------
37 //
38 // PTS Message Identifier
39 //
40 //------------------------------------------------------------------------------
41
42
43 // Status Codes
44 #define PTS_STATUS_OK 0x00
45 #define PTS_STATUS_ERROR 0x01
46
47
48 // Message IDs
49 #define PTS_MSG_SET_RADIO_TEST_MODE_REQ 0x01
50 #define PTS_MSG_SET_RADIO_TEST_MODE_RSP 0x02
51
52 #define PTS_MSG_SET_DIGITAL_OUTPUT_REQ 0x07
53 #define PTS_MSG_SET_DIGITAL_OUTPUT_RSP 0x08
54
55 #define PTS_DEVMGMT_MSG_SET_OPMODE_REQ 0x09
56 #define PTS_DEVMGMT_MSG_SET_OPMODE_RSP 0x0A
57
58 //#define PTS_PWD 0x57, 0x69, 0x4d, 0x4f, 0x44, 0x2d, 0x4c, 0x6f, 0x52, 0x61
59 #define PTS_PWD "WiMOD-LoRa"
60 #define PTS_PWD_LEN 10
61
62 #define PTS_DEVCONFIG_APPLICATION_MODE 0
63 #define PTS_DEVCONFIG_TEST_MODE 1
64 #define PTS_DEVCONFIG_PRODUCTION_MODE 2
65
66
67 //------------------------------------------------------------------------------
68 //
69 // structures
70 //
71 //------------------------------------------------------------------------------
72
73 typedef enum TRadioTest_TestMode
74 {
75 TestMode_Off = 0,
76 TestMode_CW,
77 TestMode_PN9,
78 TestMode_PN9_NarrowBand,
79 TestMode_PN15,
80 TestMode_TxRx,
81
82 } TRadioTest_TestMode;
83
84
85 typedef struct TWiMODTEST_PTS_TestConfig
86 {
87 TRadioTest_TestMode TestMode;
88 TRadioCfg_PowerLevel RFPowerLevel;
89 TRadioCfg_Modulation RFModulation;
91 UINT8 RFChannel_Lsb;
93 UINT8 RFChannel_Mid;
95 UINT8 RFChannel_Msb;
96 // Channel bandwidth
97 TRadioCfg_LoRaBandwidth RFChannelBW;
98 // Spreading Factor
99 TRadioCfg_LoRaSpreadingFactor RFSpreadingFactor;
100 // Error coding (FEC)
101 TRadioCfg_ErrorCoding RFErrorCoding;
102 } TWiMODTEST_PTS_TestConfig;
103
104
106 #endif /* ARDUINO_HWTEST_WIMOD_SAP_PTS_IDS_H_ */
TRadioCfg_Modulation
TRadioCfg_Modulation
Modulation technique supported by the WiMOD (only for LR-BASE)
Definition: WiMOD_SAP_DEVMGMT_IDs.h:240
WiMOD_SAP_DEVMGMT_IDs.h
Supporting IDs and definitions for the DeviceManagement ServiceAccessPoint.
TRadioCfg_ErrorCoding
TRadioCfg_ErrorCoding
ErrorCoding settings (for LoRa modulation) (only for LR-BASE)
Definition: WiMOD_SAP_DEVMGMT_IDs.h:279
TRadioCfg_PowerLevel
enum TRadioCdf_TxPowerLevel TRadioCfg_PowerLevel
TxPowerLevel settings (only for LR-BASE)
TRadioCfg_LoRaBandwidth
TRadioCfg_LoRaBandwidth
Bandwidth settings for the LoRa modulation (only for LR-BASE)
Definition: WiMOD_SAP_DEVMGMT_IDs.h:249
TRadioCfg_LoRaSpreadingFactor
TRadioCfg_LoRaSpreadingFactor
SpreadingFactors for LoRa modulation (only for LR-BASE)
Definition: WiMOD_SAP_DEVMGMT_IDs.h:259