ccNOos
v0.0.0
Build Portable Microcontroller Applications!
tests
testApps
SatComACS
deviceModules
TxRx
TxRxmodule.c
Go to the documentation of this file.
1
/** \file TxRxmodule.c
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
Implementation for straight 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
#include "
TxRxmodule.h
"
28
29
30
struct
txRxStruct
createtxRxStruct
()
31
{
32
struct
txRxStruct
outStruct;
33
int
i;
34
for
(i = 0; i <
MAX_NUM_ATTENUATORS
; i++)
35
{
36
outStruct.
AttenuatorNeedsWriting
[i] =
ui8FALSE
;
37
}
38
outStruct.
INDEX_Attenuator
= 0;
39
outStruct.
CMD_AttenuatorBits
= 0x00;
40
return
outStruct;
41
}
txRxStruct::AttenuatorNeedsWriting
UI_8 AttenuatorNeedsWriting[MAX_NUM_ATTENUATORS]
Definition:
TxRxmodule.h:41
MAX_NUM_ATTENUATORS
#define MAX_NUM_ATTENUATORS
Definition:
TxRxmodule.h:33
ui8FALSE
#define ui8FALSE
Definition:
version_config.h:190
createtxRxStruct
struct txRxStruct createtxRxStruct()
Definition:
TxRxmodule.c:30
TxRxmodule.h
IMS: ccNOos, Declarations for straight C and C++
txRxStruct::INDEX_Attenuator
UI_8 INDEX_Attenuator
Definition:
TxRxmodule.h:39
txRxStruct
Definition:
TxRxmodule.h:38
txRxStruct::CMD_AttenuatorBits
UI_8 CMD_AttenuatorBits
Definition:
TxRxmodule.h:39
Generated by
1.8.20