ccNOos  v0.0.0
Build Portable Microcontroller Applications!
TxRxmodule.h File Reference

IMS: ccNOos, Declarations for straight C and C++ More...

#include "console_menu.h"
#include "HMC1119.h"
#include "MCP23017.h"
Include dependency graph for TxRxmodule.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  txRxStruct
 

Macros

#define MAX_NUM_ATTENUATORS   (3u)
 
#define MAX_MDMS   (4u)
 
#define SWITCH_OPEN   (0u)
 
#define __SatComACS_TxRx_WriteFuncsTemplate(DELAYFUNC)
 
#define SatComACS_TxRx_WriteFuncsTemplate(DELAYFUNC)   __SatComACS_TxRx_WriteFuncsTemplate(DELAYFUNC)
 

Functions

struct txRxStruct createtxRxStruct ()
 
void writeAttenuatorValues (struct txRxStruct *txRxStructPtrIn)
 
void writeModemSwitchValues (struct txRxStruct *txRxStructPtrIn)
 

Detailed Description

IMS: ccNOos, Declarations for straight C and C++

Copyright 2021 InMechaSol, Inc

Licensed under the Apache License, Version 2.0(the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Notes: (.c includes .h) - for straight C or (.cpp includes .c which includes .h) - for C++ wrapped straight C Always compiled to a single compilation unit, either C or CPP, not both

Definition in file TxRxmodule.h.

Macro Definition Documentation

◆ __SatComACS_TxRx_WriteFuncsTemplate

#define __SatComACS_TxRx_WriteFuncsTemplate (   DELAYFUNC)

Definition at line 60 of file TxRxmodule.h.

◆ MAX_MDMS

#define MAX_MDMS   (4u)

Definition at line 36 of file TxRxmodule.h.

◆ MAX_NUM_ATTENUATORS

#define MAX_NUM_ATTENUATORS   (3u)

Definition at line 35 of file TxRxmodule.h.

◆ SatComACS_TxRx_WriteFuncsTemplate

#define SatComACS_TxRx_WriteFuncsTemplate (   DELAYFUNC)    __SatComACS_TxRx_WriteFuncsTemplate(DELAYFUNC)

Definition at line 142 of file TxRxmodule.h.

◆ SWITCH_OPEN

#define SWITCH_OPEN   (0u)

Definition at line 37 of file TxRxmodule.h.

Function Documentation

◆ createtxRxStruct()

struct txRxStruct createtxRxStruct ( )

Definition at line 1 of file TxRxmodule.c.

30 {
31  struct txRxStruct outStruct;
32  int i;
33  for (i = 0; i < MAX_NUM_ATTENUATORS; i++)
34  {
35  outStruct.AttenuatorValues[i] = createDATStruct();
36  outStruct.AttenuatorNeedsWriting[i] = ui8FALSE;
37  }
38  for (i = 0; i < MAX_MDMS; i++)
39  {
40  outStruct.MDMSwitchStates[i] = 0;
41  outStruct.MDMSwitchNeedsWriting[i] = ui8FALSE;
42  }
43  return outStruct;
44 }

◆ writeAttenuatorValues()

void writeAttenuatorValues ( struct txRxStruct txRxStructPtrIn)

Definition at line 72 of file Application_Platform_Main.c.

72 { ; }

◆ writeModemSwitchValues()

void writeModemSwitchValues ( struct txRxStruct txRxStructPtrIn)
txRxStruct::AttenuatorValues
struct DATStruct AttenuatorValues[MAX_NUM_ATTENUATORS]
Definition: TxRxmodule.h:41
MAX_MDMS
#define MAX_MDMS
Definition: TxRxmodule.h:36
txRxStruct
Definition: TxRxmodule.h:40
createDATStruct
struct DATStruct createDATStruct()
Definition: HMC1119.c:29
MAX_NUM_ATTENUATORS
#define MAX_NUM_ATTENUATORS
Definition: TxRxmodule.h:35
ui8FALSE
#define ui8FALSE
Definition: version_config.h:190