ccNOos  v0.0.0
Build Portable Microcontroller Applications!
Data Structures | Macros | Functions
TxRxmodule.h File Reference

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

#include "console_menu.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 MIN_ATTEN_VAL   (0.0)
 
#define MAX_ATTEN_VAL   (31.75)
 

Functions

struct txRxStruct createtxRxStruct ()
 
void writeAttenuatorValues (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

◆ MAX_ATTEN_VAL

#define MAX_ATTEN_VAL   (31.75)

Definition at line 35 of file TxRxmodule.h.

◆ MAX_NUM_ATTENUATORS

#define MAX_NUM_ATTENUATORS   (3u)

Definition at line 33 of file TxRxmodule.h.

◆ MIN_ATTEN_VAL

#define MIN_ATTEN_VAL   (0.0)

Definition at line 34 of file TxRxmodule.h.

Function Documentation

◆ createtxRxStruct()

struct txRxStruct createtxRxStruct ( )

Definition at line 1 of file TxRxmodule.c.

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 }

◆ writeAttenuatorValues()

void writeAttenuatorValues ( struct txRxStruct txRxStructPtrIn)

Definition at line 72 of file Application_Platform_Main.c.

72 { ; }
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
txRxStruct
Definition: TxRxmodule.h:38