LevelMeter-Display  2.0
An ultrasonic Level Meter for Stormwater Cisterns
Functions | Variables
ihex.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void HexDump (uint16_t adr, void *ptr, uint8_t n)
 Prints one line of Hexdump. More...
 
int8_t UpdateSensorFirmware (void)
 Updates the Sensor Firmware. More...
 
int8_t VerifySensorFirmware (void)
 Verifies the Sensor Firmware against an Intel-Hex-File. More...
 

Variables

static const uint8_t RECTYPE_DATA =0x00
 Data Record. More...
 
static const uint8_t RECTYPE_EOF =0x01
 End of File Marker. More...
 
static const uint8_t RECTYPE_EXTSEG =0x02
 Extended Segment Address Record. More...
 

Function Documentation

◆ HexDump()

void HexDump ( uint16_t  adr,
void *  ptr,
uint8_t  n 
)

Prints one line of Hexdump.

Parameters
adrThe Address to be displayed
ptrA Pointer to the first Byte
nThe number of Bytes to dump

References hprintf_P().

Referenced by VerifySensor().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ UpdateSensorFirmware()

int8_t UpdateSensorFirmware ( void  )

Updates the Sensor Firmware.

Returns
0 on Success, -1 on Error

References blFlags, BOOTLDHELLO, hprintf_P(), ProgramSensor(), putc0(), ReadIntelHex(), SensorPowerOff(), SensorPowerOn(), and VerifySensor().

Referenced by CmdUpdateSensorFirmware().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ VerifySensorFirmware()

int8_t VerifySensorFirmware ( void  )

Verifies the Sensor Firmware against an Intel-Hex-File.

Returns
0 on Success, -1 on Error

References blFlags, BOOTLDHELLO, hprintf_P(), putc0(), ReadIntelHex(), SensorPowerOff(), SensorPowerOn(), and VerifySensor().

Referenced by CmdVerifySensorFirmware().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ RECTYPE_DATA

const uint8_t RECTYPE_DATA =0x00
static

Data Record.

Referenced by DoOneLine().

◆ RECTYPE_EOF

const uint8_t RECTYPE_EOF =0x01
static

End of File Marker.

Referenced by DoOneLine().

◆ RECTYPE_EXTSEG

const uint8_t RECTYPE_EXTSEG =0x02
static

Extended Segment Address Record.

Referenced by DoOneLine().