MAXREFDES70# Code Documentation
V02.00
High-precision long battery life heat/flow meter
|
#include "em_device.h"
#include "em_chip.h"
#include "em_cmu.h"
#include "em_emu.h"
#include "em_gpio.h"
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <stdbool.h>
#include "lookUpTables.h"
#include "dogm163.h"
Go to the source code of this file.
Data Structures | |
struct | Temperature_ResultsStruct |
struct | TemperatureResultsAllPortsStruct |
struct | Hit_ResultsStruct |
struct | tm_withMilli |
struct | Flow_ResultsStruct |
struct | Energy_ResultsStruct |
struct | PointOfTimeSampleDataStruct |
Macros | |
#define | TOF_UP 0x00 |
#define | TOF_DOWN 0x01 |
#define | TOF_DIFF 0x02 |
#define | TEMPERATURE 0x03 |
#define | RESET 0x04 |
#define | INITIALIZE 0x05 |
#define | TRANSFER_TO_FLASH 0x06 |
#define | EVTMG1 0x07 |
#define | EVTMG2 0x08 |
#define | EVTMG3 0x09 |
#define | HALT 0x0a |
#define | LDO_TIMED 0x0b |
#define | LDO_ON 0x0c |
#define | LDO_OFF 0x0d |
#define | CALIBRATES 0x0e |
#define | READ_FLASH 0x90 |
#define | WRITE_FLASH 0x10 |
#define | BLOCK_ERASE_FLASH 0x13 |
#define | SECONDS 0x30 |
#define | MINS_HRS 0x31 |
#define | DAY_DATE 0x32 |
#define | MONTH_YEAR 0x33 |
#define | INTERRUPT_STATUS 0xFE |
#define | T1_REG 0xE7 |
#define | T2_REG 0xE9 |
#define | T3_REG 0xEB |
#define | T4_REG 0xED |
#define | T1_AVG 0xF0 |
#define | T2_AVG 0xF2 |
#define | T3_AVG 0xF4 |
#define | T4_AVG 0xF6 |
#define | HIT1UP_REG 0xC5 |
#define | HIT2UP_REG 0xC7 |
#define | HIT3UP_REG 0xC9 |
#define | HIT4UP_REG 0xCB |
#define | HIT5UP_REG 0xCD |
#define | HIT6UP_REG 0xCF |
#define | AVGUP_REG 0xD1 |
#define | HIT1DOWN_REG 0xD4 |
#define | HIT2DOWN_REG 0xD6 |
#define | HIT3DOWN_REG 0xD8 |
#define | HIT4DOWN_REG 0xDA |
#define | HIT5DOWN_REG 0xDC |
#define | HIT6DOWN_REG 0xDE |
#define | AVGDOWN_REG 0xE0 |
#define | TOF_DIFF_REG 0xE2 |
#define | TOF_DIFF_AVG_REG 0xE5 |
#define | INTERRUPT_REG_TO 0x8000 |
#define | INTERRUPT_REG_TOF 0x1000 |
#define | INTERRUPT_REG_TE 0x0800 |
#define | INTERRUPT_REG_TOF_EVTMG 0x0200 |
#define | INTERRUPT_REG_TEMP_EVTMG 0x0100 |
#define | INTERRUPT_REG_TOF_FLASH 0x0080 |
#define | NUMBER_TEMPERATUE_PORTS_USED 3 |
#define | HOT_TEMP_PORT 0 |
#define | COLD_TEMP_PORT 1 |
#define | REFERENCE_TEMP_PORT 2 |
#define | USING_EVENT_TIMING_MODES_READ_AVERAGE |
#define | T4MHZ (float)250/(float)1000000000 |
#define | LSBIT_TOF_VALUE (1/(float)65536) * T4MHZ |
#define | PI 3.14 |
#define | SECONDS_PER_HR 3600 |
#define | MAX_DISPLAY_REPEAT 9000 |
#define | MAX35101_CS_Low() GPIO_PinOutClear(gpioPortB, 8) |
#define | MAX35101_CS_High() GPIO_PinOutSet(gpioPortB, 8) |
#define | RTD_RREF_VALUE 1000 |
#define | PIPELENGTH_IN_FLOW_M 0.0717 |
#define | PIPERADIUS_M 0.008 |
#define | HFRCO_FREQUENCY 14000000 |
#define | SPI_PERCLK_FREQUENCY HFRCO_FREQUENCY |
#define | SPI_BAUDRATE 1000000 |
#define | NO_RX 0 |
#define | NO_TX NO_RX |
Enumerations | |
enum | { Display_Off = 0, Display_Welcome = Display_Off + 1, Display_Clock = Display_Welcome + 1, Display_Temp = Display_Clock + 1, Display_TOFDIFF = Display_Temp + 1, Display_Volumetric_Flow = Display_TOFDIFF + 1, Display_Total_Volume = Display_Volumetric_Flow + 1, Display_Energy = Display_Total_Volume + 1, Display_TDF_Config = Display_Energy + 1, Display_TDM_Config = Display_TDF_Config + 1, Display_TMF_Config = Display_TDM_Config + 1, Display_TMM_Config = Display_TMF_Config + 1, Display_Last = Display_TMM_Config + 1 } |
Functions | |
void | Display (void) |
void | MAX35101_SetTime (void) |
bool | Calcuate_Temperature (uint32_t tempRegisterData, uint32_t RefRegisterData, float *TempDestination) |
bool | Calculate_TOF_Velocity (int32_t TOF_DiffData, float *FlowVelocity, float Temperature, float *TOF_DIFF_DeltaT_S) |
void | Calculate_TimeDifference (tm_withMilli *t1, tm_withMilli *t2, float *difference_sec) |
bool | Calculate_Volumetric_Flow (float Velocity_mPerS, float *VolumetricFlow_m3PerS, float *VolumetricGainfactor, float *VolumetricFlowCorrected_m3PerS) |
bool | Calculate_Mass_Flow (float VolumetricFlow_m3PerS, float *MassFlow_kgPerHr, float Temperature) |
bool | Calculate_Enthalpy (float TemperatureAtCold, float TemperatureAtHot, float *EnthalpyAtCold_JperKg, float *EnthalpyAtHot_JperKg, float *DeltaEnthalpy_JperKg) |
bool | Calculate_Piecewiese_Energy (PointOfTimeSampleDataStruct *POT1, PointOfTimeSampleDataStruct *POT2, float *EnergyForTime_J) |
bool | Calculate_Piecewise_Volume (PointOfTimeSampleDataStruct *POT1, PointOfTimeSampleDataStruct *POT2, float *Volume_m3) |
bool | MAX35101_Send_Opcode (char opcode) |
bool | MAX35101_Read_Register (char address, uint16_t *results) |
bool | MAX35101_Read_2WordValue (char startingAddress, uint32_t *results) |
bool | MAX35101_Update_TOF_DIFFData (Flow_ResultsStruct *TOF_DIFF_Results) |
bool | MAX35101_UpdateAndGetTime (tm_withMilli *RTCTimeStamp) |
bool | MAX35101_Update_TOF_AVG_DIFFData (Flow_ResultsStruct *TOF_DIFF_Results) |
bool | MAX35101_Write_Register (char address, uint16_t DatatoWrite) |
bool | MAX35101_Update_TemperatureData (TemperatureResultsAllPortsStruct *TempResultsToUpdate) |
float | LinearInterpolation (float X1Low, float X2High, float Y1Low, float Y2High, float XnewLookup) |
int | FloatToString (float fNumber, uint8_t precision, char *output) |
void | Delay (uint32_t dlyTicks) |
Delays number of msTick Systicks (typically 1 ms) | |
void | init (void) |
bool | SPI_Send_Byte (char dataByte) |
bool | SPI_Read_Word (uint16_t *results) |
bool | MAX35101_SendConfigs (void) |
bool | Calculate_Flow_Parameters (Flow_ResultsStruct *TOF_DIFF_ResultsToUse, TemperatureResultsAllPortsStruct *TemperatureResultsToUse) |
bool | Calculate_Energy_Parameters (Flow_ResultsStruct *TOF_DIFF_ResultsToUse, TemperatureResultsAllPortsStruct *TemperatureResultsToUse, Energy_ResultsStruct *EnergyToUse) |
bool | MAX35101_Enable_LDO (void) |
bool | MAX35101_Disable_LDO (void) |
bool | MAX35101_Write_Flash (uint16_t StartingFlashAddress, uint16_t WriteLength, uint16_t *DataToWrite) |
bool | MAX35101_Read_Flash (uint16_t FlashAddress, uint16_t ReadLength, uint16_t *DataToRead) |
bool | MAX35101_BlockErase_Flash (uint16_t AddressBlock) |
void | GPIO_ODD_IRQHandler (void) |
void | GPIO_EVEN_IRQHandler (void) |
int | main (void) |
void | SysTick_Handler (void) |
void | USART2_sendBuffer (char *txBuffer, int bytesToSend) |
Variables | |
TemperatureResultsAllPortsStruct | Last_TempUpdate |
PointOfTimeSampleDataStruct | POT_Data [1] |
PointOfTimeSampleDataStruct | POT_Data_Last |
int | POTCount = 0 |
float | TotalEnergy = 0 |
float | TotalVolume_m3 = 0 |
int | POR = 0 |
uint16_t | TDF |
uint16_t | TDM |
uint16_t | TMF |
uint16_t | TMM |
uint16_t | reg = 0 |
char | output [49] |
uint8_t | DisplayMode = Display_Off |
uint8_t | previousDisplayMode = Display_Off |
int | displayRepeat = 0 |
bool | displayPowerOff = true |
bool | EVT_STARTED = false |
uint32_t | delayCount = 0 |
float | energyAddition [30] |
float | energyAddition1 |
int | energyAdditionsTracker = 0 |
float | volumeAddition [30] |
float | volumeAddition1 |
int | volueAdditionsTracker = 0 |
uint32_t | flags |
uint16_t | InterruptRegisterValue |
****************************************************** Project: MAXREFDES70 Filename: MAXREFDES70.c Description: This module contains the Main application for the implementation of the example program for the MAXREFDES70. Revision History:
09-26-2014 Rev 01.00 MG Initial release.
/* Copyright (C) 2012 Maxim Integrated Products, Inc., All Rights Reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL MAXIM INTEGRATED PRODUCTS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Except as contained in this notice, the name of Maxim Integrated Products shall not be used except as stated in the Maxim Integrated Products Branding Policy.
The mere transfer of this software does not imply any licenses of trade secrets, proprietary technology, copyrights, patents, trademarks, maskwork rights, or any other form of intellectual property whatsoever. Maxim Integrated Products retains all ownership rights.
Definition in file MAXREFDES70.c.
#define AVGDOWN_REG 0xE0 |
Definition at line 127 of file MAXREFDES70.c.
#define AVGUP_REG 0xD1 |
Definition at line 120 of file MAXREFDES70.c.
#define BLOCK_ERASE_FLASH 0x13 |
Definition at line 97 of file MAXREFDES70.c.
#define CALIBRATES 0x0e |
Definition at line 94 of file MAXREFDES70.c.
#define COLD_TEMP_PORT 1 |
Definition at line 144 of file MAXREFDES70.c.
#define DAY_DATE 0x32 |
Definition at line 103 of file MAXREFDES70.c.
#define EVTMG1 0x07 |
Definition at line 87 of file MAXREFDES70.c.
#define EVTMG2 0x08 |
Definition at line 88 of file MAXREFDES70.c.
#define EVTMG3 0x09 |
Definition at line 89 of file MAXREFDES70.c.
#define HALT 0x0a |
Definition at line 90 of file MAXREFDES70.c.
#define HFRCO_FREQUENCY 14000000 |
Definition at line 1402 of file MAXREFDES70.c.
#define HIT1DOWN_REG 0xD4 |
Definition at line 121 of file MAXREFDES70.c.
#define HIT1UP_REG 0xC5 |
Definition at line 114 of file MAXREFDES70.c.
#define HIT2DOWN_REG 0xD6 |
Definition at line 122 of file MAXREFDES70.c.
#define HIT2UP_REG 0xC7 |
Definition at line 115 of file MAXREFDES70.c.
#define HIT3DOWN_REG 0xD8 |
Definition at line 123 of file MAXREFDES70.c.
#define HIT3UP_REG 0xC9 |
Definition at line 116 of file MAXREFDES70.c.
#define HIT4DOWN_REG 0xDA |
Definition at line 124 of file MAXREFDES70.c.
#define HIT4UP_REG 0xCB |
Definition at line 117 of file MAXREFDES70.c.
#define HIT5DOWN_REG 0xDC |
Definition at line 125 of file MAXREFDES70.c.
#define HIT5UP_REG 0xCD |
Definition at line 118 of file MAXREFDES70.c.
#define HIT6DOWN_REG 0xDE |
Definition at line 126 of file MAXREFDES70.c.
#define HIT6UP_REG 0xCF |
Definition at line 119 of file MAXREFDES70.c.
#define HOT_TEMP_PORT 0 |
Definition at line 143 of file MAXREFDES70.c.
#define INITIALIZE 0x05 |
Definition at line 85 of file MAXREFDES70.c.
#define INTERRUPT_REG_TE 0x0800 |
Definition at line 134 of file MAXREFDES70.c.
#define INTERRUPT_REG_TEMP_EVTMG 0x0100 |
Definition at line 136 of file MAXREFDES70.c.
#define INTERRUPT_REG_TO 0x8000 |
Definition at line 132 of file MAXREFDES70.c.
#define INTERRUPT_REG_TOF 0x1000 |
Definition at line 133 of file MAXREFDES70.c.
#define INTERRUPT_REG_TOF_EVTMG 0x0200 |
Definition at line 135 of file MAXREFDES70.c.
#define INTERRUPT_REG_TOF_FLASH 0x0080 |
Definition at line 137 of file MAXREFDES70.c.
#define INTERRUPT_STATUS 0xFE |
Definition at line 105 of file MAXREFDES70.c.
#define LDO_OFF 0x0d |
Definition at line 93 of file MAXREFDES70.c.
#define LDO_ON 0x0c |
Definition at line 92 of file MAXREFDES70.c.
#define LDO_TIMED 0x0b |
Definition at line 91 of file MAXREFDES70.c.
#define LSBIT_TOF_VALUE (1/(float)65536) * T4MHZ |
Definition at line 233 of file MAXREFDES70.c.
#define MAX35101_CS_High | ( | ) | GPIO_PinOutSet(gpioPortB, 8) |
Definition at line 308 of file MAXREFDES70.c.
#define MAX35101_CS_Low | ( | ) | GPIO_PinOutClear(gpioPortB, 8) |
Definition at line 307 of file MAXREFDES70.c.
#define MAX_DISPLAY_REPEAT 9000 |
Definition at line 259 of file MAXREFDES70.c.
#define MINS_HRS 0x31 |
Definition at line 102 of file MAXREFDES70.c.
#define MONTH_YEAR 0x33 |
Definition at line 104 of file MAXREFDES70.c.
#define NO_RX 0 |
Definition at line 1405 of file MAXREFDES70.c.
#define NO_TX NO_RX |
Definition at line 1406 of file MAXREFDES70.c.
#define NUMBER_TEMPERATUE_PORTS_USED 3 |
Definition at line 142 of file MAXREFDES70.c.
#define PI 3.14 |
Definition at line 235 of file MAXREFDES70.c.
#define PIPELENGTH_IN_FLOW_M 0.0717 |
Definition at line 345 of file MAXREFDES70.c.
#define PIPERADIUS_M 0.008 |
Definition at line 384 of file MAXREFDES70.c.
#define READ_FLASH 0x90 |
Definition at line 95 of file MAXREFDES70.c.
#define REFERENCE_TEMP_PORT 2 |
Definition at line 145 of file MAXREFDES70.c.
#define RESET 0x04 |
Definition at line 84 of file MAXREFDES70.c.
#define RTD_RREF_VALUE 1000 |
Definition at line 314 of file MAXREFDES70.c.
#define SECONDS 0x30 |
Definition at line 101 of file MAXREFDES70.c.
#define SECONDS_PER_HR 3600 |
Definition at line 237 of file MAXREFDES70.c.
#define SPI_BAUDRATE 1000000 |
Definition at line 1404 of file MAXREFDES70.c.
#define SPI_PERCLK_FREQUENCY HFRCO_FREQUENCY |
Definition at line 1403 of file MAXREFDES70.c.
#define T1_AVG 0xF0 |
Definition at line 110 of file MAXREFDES70.c.
#define T1_REG 0xE7 |
Definition at line 106 of file MAXREFDES70.c.
#define T2_AVG 0xF2 |
Definition at line 111 of file MAXREFDES70.c.
#define T2_REG 0xE9 |
Definition at line 107 of file MAXREFDES70.c.
#define T3_AVG 0xF4 |
Definition at line 112 of file MAXREFDES70.c.
#define T3_REG 0xEB |
Definition at line 108 of file MAXREFDES70.c.
#define T4_AVG 0xF6 |
Definition at line 113 of file MAXREFDES70.c.
#define T4_REG 0xED |
Definition at line 109 of file MAXREFDES70.c.
#define T4MHZ (float)250/(float)1000000000 |
Definition at line 232 of file MAXREFDES70.c.
#define TEMPERATURE 0x03 |
Definition at line 83 of file MAXREFDES70.c.
#define TOF_DIFF 0x02 |
Definition at line 82 of file MAXREFDES70.c.
#define TOF_DIFF_AVG_REG 0xE5 |
Definition at line 129 of file MAXREFDES70.c.
#define TOF_DIFF_REG 0xE2 |
Definition at line 128 of file MAXREFDES70.c.
#define TOF_DOWN 0x01 |
Definition at line 81 of file MAXREFDES70.c.
#define TOF_UP 0x00 |
Definition at line 80 of file MAXREFDES70.c.
#define TRANSFER_TO_FLASH 0x06 |
Definition at line 86 of file MAXREFDES70.c.
#define USING_EVENT_TIMING_MODES_READ_AVERAGE |
Definition at line 149 of file MAXREFDES70.c.
#define WRITE_FLASH 0x10 |
Definition at line 96 of file MAXREFDES70.c.
anonymous enum |
Definition at line 212 of file MAXREFDES70.c.
bool Calcuate_Temperature | ( | uint32_t | tempRegisterData, |
uint32_t | RefRegisterData, | ||
float * | TempDestination | ||
) |
Definition at line 315 of file MAXREFDES70.c.
bool Calculate_Energy_Parameters | ( | Flow_ResultsStruct * | TOF_DIFF_ResultsToUse, |
TemperatureResultsAllPortsStruct * | TemperatureResultsToUse, | ||
Energy_ResultsStruct * | EnergyToUse | ||
) |
Definition at line 417 of file MAXREFDES70.c.
bool Calculate_Enthalpy | ( | float | TemperatureAtCold, |
float | TemperatureAtHot, | ||
float * | EnthalpyAtCold_JperKg, | ||
float * | EnthalpyAtHot_JperKg, | ||
float * | DeltaEnthalpy_JperKg | ||
) |
Definition at line 455 of file MAXREFDES70.c.
bool Calculate_Flow_Parameters | ( | Flow_ResultsStruct * | TOF_DIFF_ResultsToUse, |
TemperatureResultsAllPortsStruct * | TemperatureResultsToUse | ||
) |
Definition at line 346 of file MAXREFDES70.c.
bool Calculate_Mass_Flow | ( | float | VolumetricFlow_m3PerS, |
float * | MassFlow_kgPerHr, | ||
float | Temperature | ||
) |
Definition at line 436 of file MAXREFDES70.c.
bool Calculate_Piecewiese_Energy | ( | PointOfTimeSampleDataStruct * | POT1, |
PointOfTimeSampleDataStruct * | POT2, | ||
float * | EnergyForTime_J | ||
) |
Definition at line 504 of file MAXREFDES70.c.
bool Calculate_Piecewise_Volume | ( | PointOfTimeSampleDataStruct * | POT1, |
PointOfTimeSampleDataStruct * | POT2, | ||
float * | Volume_m3 | ||
) |
Definition at line 518 of file MAXREFDES70.c.
void Calculate_TimeDifference | ( | tm_withMilli * | t1, |
tm_withMilli * | t2, | ||
float * | difference_sec | ||
) |
Definition at line 482 of file MAXREFDES70.c.
bool Calculate_TOF_Velocity | ( | int32_t | TOF_DiffData, |
float * | FlowVelocity, | ||
float | Temperature, | ||
float * | TOF_DIFF_DeltaT_S | ||
) |
Definition at line 359 of file MAXREFDES70.c.
bool Calculate_Volumetric_Flow | ( | float | Velocity_mPerS, |
float * | VolumetricFlow_m3PerS, | ||
float * | VolumetricGainfactor, | ||
float * | VolumetricFlowCorrected_m3PerS | ||
) |
Definition at line 385 of file MAXREFDES70.c.
void Delay | ( | uint32_t | dlyTicks | ) |
Delays number of msTick Systicks (typically 1 ms)
dlyTicks | Number of ticks to delay |
Definition at line 1393 of file MAXREFDES70.c.
void Display | ( | void | ) |
Definition at line 1096 of file MAXREFDES70.c.
int FloatToString | ( | float | fNumber, |
uint8_t | precision, | ||
char * | output | ||
) |
Definition at line 543 of file MAXREFDES70.c.
void GPIO_EVEN_IRQHandler | ( | void | ) |
Definition at line 792 of file MAXREFDES70.c.
void GPIO_ODD_IRQHandler | ( | void | ) |
Definition at line 770 of file MAXREFDES70.c.
void init | ( | void | ) |
Definition at line 1351 of file MAXREFDES70.c.
float LinearInterpolation | ( | float | X1Low, |
float | X2High, | ||
float | Y1Low, | ||
float | Y2High, | ||
float | XnewLookup | ||
) |
Definition at line 532 of file MAXREFDES70.c.
int main | ( | void | ) |
Definition at line 1060 of file MAXREFDES70.c.
bool MAX35101_BlockErase_Flash | ( | uint16_t | AddressBlock | ) |
Definition at line 749 of file MAXREFDES70.c.
bool MAX35101_Disable_LDO | ( | void | ) |
Definition at line 692 of file MAXREFDES70.c.
bool MAX35101_Enable_LDO | ( | void | ) |
Definition at line 685 of file MAXREFDES70.c.
bool MAX35101_Read_2WordValue | ( | char | startingAddress, |
uint32_t * | results | ||
) |
Definition at line 1297 of file MAXREFDES70.c.
bool MAX35101_Read_Flash | ( | uint16_t | FlashAddress, |
uint16_t | ReadLength, | ||
uint16_t * | DataToRead | ||
) |
Definition at line 726 of file MAXREFDES70.c.
bool MAX35101_Read_Register | ( | char | address, |
uint16_t * | results | ||
) |
Definition at line 1317 of file MAXREFDES70.c.
bool MAX35101_Send_Opcode | ( | char | opcode | ) |
Definition at line 1284 of file MAXREFDES70.c.
bool MAX35101_SendConfigs | ( | void | ) |
Definition at line 1258 of file MAXREFDES70.c.
void MAX35101_SetTime | ( | void | ) |
Definition at line 1559 of file MAXREFDES70.c.
bool MAX35101_Update_TemperatureData | ( | TemperatureResultsAllPortsStruct * | TempResultsToUpdate | ) |
Definition at line 572 of file MAXREFDES70.c.
bool MAX35101_Update_TOF_AVG_DIFFData | ( | Flow_ResultsStruct * | TOF_DIFF_Results | ) |
Definition at line 603 of file MAXREFDES70.c.
bool MAX35101_Update_TOF_DIFFData | ( | Flow_ResultsStruct * | TOF_DIFF_Results | ) |
Definition at line 612 of file MAXREFDES70.c.
bool MAX35101_UpdateAndGetTime | ( | tm_withMilli * | RTCTimeStamp | ) |
Definition at line 662 of file MAXREFDES70.c.
bool MAX35101_Write_Flash | ( | uint16_t | StartingFlashAddress, |
uint16_t | WriteLength, | ||
uint16_t * | DataToWrite | ||
) |
Definition at line 698 of file MAXREFDES70.c.
bool MAX35101_Write_Register | ( | char | address, |
uint16_t | DatatoWrite | ||
) |
Definition at line 1332 of file MAXREFDES70.c.
bool SPI_Read_Word | ( | uint16_t * | results | ) |
Definition at line 1438 of file MAXREFDES70.c.
bool SPI_Send_Byte | ( | char | dataByte | ) |
Definition at line 1430 of file MAXREFDES70.c.
void SysTick_Handler | ( | void | ) |
Definition at line 1385 of file MAXREFDES70.c.
void USART2_sendBuffer | ( | char * | txBuffer, |
int | bytesToSend | ||
) |
Definition at line 1408 of file MAXREFDES70.c.
uint32_t delayCount = 0 |
Definition at line 262 of file MAXREFDES70.c.
uint8_t DisplayMode = Display_Off |
Definition at line 256 of file MAXREFDES70.c.
bool displayPowerOff = true |
Definition at line 260 of file MAXREFDES70.c.
int displayRepeat = 0 |
Definition at line 258 of file MAXREFDES70.c.
float energyAddition[30] |
Definition at line 502 of file MAXREFDES70.c.
float energyAddition1 |
Definition at line 502 of file MAXREFDES70.c.
int energyAdditionsTracker = 0 |
Definition at line 503 of file MAXREFDES70.c.
bool EVT_STARTED = false |
Definition at line 261 of file MAXREFDES70.c.
uint32_t flags |
Definition at line 768 of file MAXREFDES70.c.
uint16_t InterruptRegisterValue |
Definition at line 790 of file MAXREFDES70.c.
TemperatureResultsAllPortsStruct Last_TempUpdate |
Definition at line 240 of file MAXREFDES70.c.
char output[49] |
Definition at line 254 of file MAXREFDES70.c.
int POR = 0 |
Definition at line 251 of file MAXREFDES70.c.
PointOfTimeSampleDataStruct POT_Data[1] |
Definition at line 246 of file MAXREFDES70.c.
PointOfTimeSampleDataStruct POT_Data_Last |
Definition at line 247 of file MAXREFDES70.c.
int POTCount = 0 |
Definition at line 248 of file MAXREFDES70.c.
uint8_t previousDisplayMode = Display_Off |
Definition at line 257 of file MAXREFDES70.c.
uint16_t reg = 0 |
Definition at line 253 of file MAXREFDES70.c.
uint16_t TDF |
Definition at line 252 of file MAXREFDES70.c.
uint16_t TDM |
Definition at line 252 of file MAXREFDES70.c.
uint16_t TMF |
Definition at line 252 of file MAXREFDES70.c.
uint16_t TMM |
Definition at line 252 of file MAXREFDES70.c.
float TotalEnergy = 0 |
Definition at line 249 of file MAXREFDES70.c.
float TotalVolume_m3 = 0 |
Definition at line 250 of file MAXREFDES70.c.
int volueAdditionsTracker = 0 |
Definition at line 517 of file MAXREFDES70.c.
float volumeAddition[30] |
Definition at line 516 of file MAXREFDES70.c.
float volumeAddition1 |
Definition at line 516 of file MAXREFDES70.c.