rl_controller.h
1 /****************************************************************************************
2  * FileName : rl_controller.h
3  *
4  * Description : This file defines the functions to construct Radar Messages.
5  *
6  ****************************************************************************************
7  * (C) Copyright 2014, Texas Instruments Incorporated. - TI web address www.ti.com
8  *---------------------------------------------------------------------------------------
9  *
10  * Redistribution and use in source and binary forms, with or without modification,
11  * are permitted provided that the following conditions are met:
12  *
13  * Redistributions of source code must retain the above copyright notice,
14  * this list of conditions and the following disclaimer.
15  *
16  * Redistributions in binary form must reproduce the above copyright notice,
17  * this list of conditions and the following disclaimer in the documentation
18  * and/or other materials provided with the distribution.
19  *
20  * Neither the name of Texas Instruments Incorporated nor the names of its
21  * contributors may be used to endorse or promote products derived from this
22  * software without specific prior written permission.
23  *
24  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
25  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
26  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
27  * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
28  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
29  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
30  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
31  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
32  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
33  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
34  * POSSIBILITY OF SUCH DAMAGE.
35 */
36 
37 /****************************************************************************************
38 * FILE INCLUSION PROTECTION
39 ****************************************************************************************
40 */
41 #ifndef RL_CONTROLLER_H
42 #define RL_CONTROLLER_H
43 
44 
45 /******************************************************************************
46  * INCLUDE FILES
47  ******************************************************************************
48  */
49 #include <ti/control/mmwavelink/mmwavelink.h>
50 
51 #ifdef __cplusplus
52 extern "C" {
53 #endif
54 /******************************************************************************
55  * GLOBAL VARIABLES/DATA-TYPES DEFINITIONS
56  ******************************************************************************
57  */
58 
59 /******************************************************************************
60  * FUNCTION PROTOTYPES
61  ******************************************************************************
62  */
63 
64 /* Radar Configuration Functions */
65 rlReturnVal_t rlAppendSubBlock(rlUInt8_t rhcpPayload[], rlUInt16_t sblkId, rlUInt16_t sbLen,
66  rlUInt8_t* sbData);
67 rlReturnVal_t rlAppendDummy(rlUInt8_t rhcpPayload[], rlUInt8_t dummyLen);
68 rlReturnVal_t rlGetSubBlock(rlUInt8_t rhcpPayload[], rlUInt16_t* sbcId, rlUInt16_t* sbLen,
69  rlUInt8_t* sbData);
70 void rlGetSubBlockId(const rlUInt8_t rhcpPayload[], rlUInt16_t* sbcId);
71 void rlGetSubBlockLen(const rlUInt8_t rhcpPayload[], rlUInt16_t* sbcLen);
72 
73 
74 #ifdef __cplusplus
75 }
76 #endif
77 
78 #endif
79 
80 /*
81  * END OF RL_CONTROLLER_H FILE
82  */

Copyright 2018, Texas Instruments Incorporated