• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2021 The Android Open Source Project
3  *
4  * Copyright 2021 NXP.
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * You may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  *        http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */
18 
19 /******************************************************************************
20  *
21  *  This file contains the definition from UCI specification
22  *
23  ******************************************************************************/
24 
25 #ifndef UWB_UCI_TEST_DEFS_H
26 #define UWB_UCI_TEST_DEFS_H
27 
28 #include <stdint.h>
29 
30 /* GID: Group Identifier (byte 0) */
31 
32 #define UCI_GID_TEST 0x0D /* 1101b UCI Test group */
33 
34 /**********************************************
35  * UCI test group(UCI_GID_TEST)- 7: Opcodes
36  **********************************************/
37 #define UCI_MSG_TEST_SET_CONFIG 0
38 #define UCI_MSG_TEST_GET_CONFIG 1
39 #define UCI_MSG_TEST_PERIODIC_TX 2
40 #define UCI_MSG_TEST_PER_RX 3
41 #define UCI_MSG_TEST_TX 4
42 #define UCI_MSG_TEST_RX 5
43 #define UCI_MSG_TEST_LOOPBACK 6
44 #define UCI_MSG_TEST_STOP_SESSION 7
45 
46 #define UCI_MSG_TEST_PERIODIC_TX_CMD_SIZE 0
47 #define UCI_MSG_TEST_PER_RX_CMD_SIZE 0
48 #define UCI_MSG_TEST_STOP_SESSION_CMD_SIZE 0
49 #define UCI_MSG_TEST_RX_CMD_SIZE 0
50 
51 /**********************************************************
52  * UCI test Parameter IDs : RF Test Configurations
53  *********************************************************/
54 #define UCI_TEST_PARAM_ID_NUM_PACKETS 0x00
55 #define UCI_TEST_PARAM_ID_T_GAP 0x01
56 #define UCI_TEST_PARAM_ID_T_START 0x02
57 #define UCI_TEST_PARAM_ID_T_WIN 0x03
58 #define UCI_TEST_PARAM_ID_RANDOMIZE_PSDU 0x04
59 #define UCI_TEST_PARAM_ID_PHR_RANGING_BIT 0x05
60 #define UCI_TEST_PARAM_ID_RMARKER_TX_START 0x06
61 #define UCI_TEST_PARAM_ID_RMARKER_RX_START 0x07
62 #define UCI_TEST_PARAM_ID_STS_INDEX_AUTO_INCR 0x08
63 
64 #endif