ccNOos  v0.0.0
Build Portable Microcontroller Applications!
TxRxmodule.h
Go to the documentation of this file.
1 /** \file TxRxmodule.h
2 * \brief <a href="https://www.inmechasol.org/" target="_blank">IMS</a>:
3  <a href="https://github.com/InMechaSol/ccNOos" target="_blank">ccNOos</a>,
4  Declarations for straight C and C++
5 
6  Copyright 2021 <a href="https://www.inmechasol.org/" target="_blank">InMechaSol, Inc</a>
7 
8  Licensed under the Apache License, Version 2.0(the "License");
9  you may not use this file except in compliance with the License.
10  You may obtain a copy of the License at
11 
12  http://www.apache.org/licenses/LICENSE-2.0
13 
14  Unless required by applicable law or agreed to in writing, software
15  distributed under the License is distributed on an "AS IS" BASIS,
16  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  See the License for the specific language governing permissions and
18  limitations under the License.
19 
20 Notes:
21  (.c includes .h) - for straight C or
22  (.cpp includes .c which includes .h) - for C++ wrapped straight C
23  *Always compiled to a single compilation unit, either C or CPP, not both
24 
25 */
26 
27 #ifndef __TXRX_MOD_H__
28 #define __TXRX_MOD_H__
29 
30 #include "console_menu.h"
31 
32 // Tx/Rx Module Data Structure
33 #define MAX_NUM_ATTENUATORS (3u)
34 #define MIN_ATTEN_VAL (0.0)
35 #define MAX_ATTEN_VAL (31.75)
36 
37 struct txRxStruct
38 {
42 };
44 void writeAttenuatorValues(struct txRxStruct* txRxStructPtrIn);
45 
46 #ifdef __USINGCONSOLEMENU
47 
48 void parseTxRxMenuAPI(struct txRxStruct* txRxStructPtrIn, struct uiStruct* uiStructPtrIn);
49 void writeTxRxMenuScreen(struct txRxStruct* txRxStructPtrIn, struct uiStruct* uiStructPtrIn);
50 void writeTxRxLogLine(struct txRxStruct* txRxStructPtrIn, struct logStruct* logStructPtrIn);
51 void parseTxRxConfigLine(struct txRxStruct* txRxStructPtrIn, struct configStruct* configStructPtrIn);
52 
53 #endif
54 
55 
56 #ifdef __cplusplus
57 
58 
59 #endif // !__cplusplus
60 #endif // !__TXRX_MOD_H__
writeTxRxLogLine
void writeTxRxLogLine(struct txRxStruct *txRxStructPtrIn, struct logStruct *logStructPtrIn)
Definition: PlatformApp_Serialization.c:36
console_menu.h
IMS: ccNOos, Declarations for straight C and C++
txRxStruct::AttenuatorNeedsWriting
UI_8 AttenuatorNeedsWriting[MAX_NUM_ATTENUATORS]
Definition: TxRxmodule.h:41
txRxStruct::AttenuatorValues
float AttenuatorValues[MAX_NUM_ATTENUATORS]
Definition: TxRxmodule.h:40
MAX_NUM_ATTENUATORS
#define MAX_NUM_ATTENUATORS
Definition: TxRxmodule.h:33
parseTxRxMenuAPI
void parseTxRxMenuAPI(struct txRxStruct *txRxStructPtrIn, struct uiStruct *uiStructPtrIn)
Definition: MenuAPI.c:327
createtxRxStruct
struct txRxStruct createtxRxStruct()
Definition: TxRxmodule.c:30
txRxStruct::INDEX_Attenuator
UI_8 INDEX_Attenuator
Definition: TxRxmodule.h:39
txRxStruct
Definition: TxRxmodule.h:38
writeAttenuatorValues
void writeAttenuatorValues(struct txRxStruct *txRxStructPtrIn)
Definition: Application_Platform_Main.c:72
txRxStruct::CMD_AttenuatorBits
UI_8 CMD_AttenuatorBits
Definition: TxRxmodule.h:39
writeTxRxMenuScreen
void writeTxRxMenuScreen(struct txRxStruct *txRxStructPtrIn, struct uiStruct *uiStructPtrIn)
Definition: MenuAPI.c:384
parseTxRxConfigLine
void parseTxRxConfigLine(struct txRxStruct *txRxStructPtrIn, struct configStruct *configStructPtrIn)
Definition: PlatformApp_Serialization.c:37