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

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

#include "ADRF6650.h"
#include "LTC2360.h"
Include dependency graph for TPMmodule.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  freqConvStruct
 
struct  powerMeterStruct
 
struct  tpmStruct
 

Functions

struct freqConvStruct createfreqConvStruct ()
 
void readFreqConv (struct freqConvStruct *freqConvStructPtrIn)
 
void writeFreqConv (struct freqConvStruct *freqConvStructPtrIn)
 
struct powerMeterStruct createPowerMeterStruct ()
 
void readPowerMeter (struct powerMeterStruct *powerMeterStructPtrIn)
 
void writePowerMeter (struct powerMeterStruct *powerMeterStructPtrIn)
 
struct tpmStruct createtpmStruct ()
 
void tryReadTPMData (struct tpmStruct *tpmStructPtrIn)
 
void tryWriteTPMData (struct tpmStruct *tpmStructPtrIn)
 

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 TPMmodule.h.

Function Documentation

◆ createfreqConvStruct()

struct freqConvStruct createfreqConvStruct ( )

Definition at line 1 of file TPMmodule.c.

31 {
32  struct freqConvStruct outStruct;
33  outStruct.data = CreateADRF6650Data();
34  outStruct.newFreqConvData = ui8FALSE;
35  return outStruct;
36 }

◆ createPowerMeterStruct()

struct powerMeterStruct createPowerMeterStruct ( )

Definition at line 1 of file TPMmodule.c.

38 {
39  struct powerMeterStruct outStruct;
40  outStruct.data.BandwidthMHz = 0;
41  outStruct.newPowerMeterValue = ui8FALSE;
42  outStruct.data.PowerMeasuredinBanddB = 0;
43  outStruct.data.current_value = 0;
44  outStruct.data.value_good = ui8FALSE;
45  return outStruct;
46 }

◆ createtpmStruct()

struct tpmStruct createtpmStruct ( )

Definition at line 1 of file TPMmodule.c.

48 {
49  struct tpmStruct outStruct;
50  outStruct.freqConverter = createfreqConvStruct();
51  outStruct.powerMeter = createPowerMeterStruct();
52  return outStruct;
53 }

◆ readFreqConv()

void readFreqConv ( struct freqConvStruct freqConvStructPtrIn)

Definition at line 75 of file Application_Platform_Main.c.

75 { ; }

◆ readPowerMeter()

void readPowerMeter ( struct powerMeterStruct powerMeterStructPtrIn)

Definition at line 77 of file Application_Platform_Main.c.

77 { ; }

◆ tryReadTPMData()

void tryReadTPMData ( struct tpmStruct tpmStructPtrIn)

Definition at line 55 of file TPMmodule.c.

56 {
57  readFreqConv(&tpmStructPtrIn->freqConverter);
58  readPowerMeter(&tpmStructPtrIn->powerMeter);
59 }

◆ tryWriteTPMData()

void tryWriteTPMData ( struct tpmStruct tpmStructPtrIn)

Definition at line 61 of file TPMmodule.c.

62 {
63  writeFreqConv(&tpmStructPtrIn->freqConverter);
64  writePowerMeter(&tpmStructPtrIn->powerMeter);
65 }

◆ writeFreqConv()

void writeFreqConv ( struct freqConvStruct freqConvStructPtrIn)

Definition at line 76 of file Application_Platform_Main.c.

76 { ; }

◆ writePowerMeter()

void writePowerMeter ( struct powerMeterStruct powerMeterStructPtrIn)

Definition at line 78 of file Application_Platform_Main.c.

78 { ; }
LTC2360DataStruct::BandwidthMHz
float BandwidthMHz
Definition: LTC2360.h:35
readFreqConv
void readFreqConv(struct freqConvStruct *freqConvStructPtrIn)
Definition: Application_Platform_Main.c:75
writeFreqConv
void writeFreqConv(struct freqConvStruct *freqConvStructPtrIn)
Definition: Application_Platform_Main.c:76
createPowerMeterStruct
struct powerMeterStruct createPowerMeterStruct()
Definition: TPMmodule.c:37
writePowerMeter
void writePowerMeter(struct powerMeterStruct *powerMeterStructPtrIn)
Definition: Application_Platform_Main.c:78
ui8FALSE
#define ui8FALSE
Definition: version_config.h:190
CreateADRF6650Data
struct ADRF6650DataStruct CreateADRF6650Data()
Definition: ADRF6650.c:29
createfreqConvStruct
struct freqConvStruct createfreqConvStruct()
Definition: TPMmodule.c:30
powerMeterStruct
Definition: TPMmodule.h:46
tpmStruct
Definition: TPMmodule.h:56
tpmStruct::freqConverter
struct freqConvStruct freqConverter
Definition: TPMmodule.h:57
readPowerMeter
void readPowerMeter(struct powerMeterStruct *powerMeterStructPtrIn)
Definition: Application_Platform_Main.c:77
freqConvStruct
Definition: TPMmodule.h:36
tpmStruct::powerMeter
struct powerMeterStruct powerMeter
Definition: TPMmodule.h:58
powerMeterStruct::data
struct LTC2360DataStruct data
Definition: TPMmodule.h:48
freqConvStruct::data
struct ADRF6650DataStruct data
Definition: TPMmodule.h:38