Functions | |
uint16_t | sysCRC16 (uint8_t *buffer, uint8_t length, uint16_t crc) |
Calculate the CRC-16 CCITT of buffer that is length bytes long. | |
void | sysInit () |
Initialize the system library and global resources. | |
void | sysLogGPSData () |
Log the current GPS position. | |
void | sysLogVoltage () |
Log the ADC values of the bus and reference voltage values. |
Calculate the CRC-16 CCITT of buffer that is length bytes long.
The crc parameter allow the calculation on the CRC on multiple buffers.
buffer | Pointer to data buffer. | |
length | number of bytes in data buffer | |
crc | starting value |
Definition at line 2001 of file PicoBeacon.c.
References value.
Referenced by tncTxPacket().
void sysInit | ( | ) |
Initialize the system library and global resources.
Definition at line 2023 of file PicoBeacon.c.
References gpsPowerOff(), IO_CS, IO_GPS_TXD, IO_LED, IO_OSK, IO_PS0, IO_PS1, IO_PTT, and IO_UPDATE.
Referenced by main().
void sysLogGPSData | ( | ) |
Log the current GPS position.
Definition at line 2048 of file PicoBeacon.c.
References GPSPOSITION_STRUCT::altitudeCM, GPSPOSITION_STRUCT::dop, GPSPOSITION_STRUCT::heading, GPSPOSITION_STRUCT::hours, GPSPOSITION_STRUCT::hSpeed, GPSPOSITION_STRUCT::latitude, LOG_COORD, logInt32(), logType(), logUint16(), logUint8(), GPSPOSITION_STRUCT::longitude, GPSPOSITION_STRUCT::minutes, GPSPOSITION_STRUCT::seconds, GPSPOSITION_STRUCT::status, GPSPOSITION_STRUCT::trackedSats, GPSPOSITION_STRUCT::visibleSats, and GPSPOSITION_STRUCT::vSpeed.
Referenced by main().
void sysLogVoltage | ( | ) |
Log the ADC values of the bus and reference voltage values.
Definition at line 2072 of file PicoBeacon.c.
References adcRawBusVolt(), adcRawRefVolt(), LOG_VOLTAGE, logType(), and logUint16().
Referenced by tncTxPacket().