System Library Functions

Generic system functions similiar to the run-time C library. More...


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.


Detailed Description

Generic system functions similiar to the run-time C library.

Function Documentation

uint16_t sysCRC16 ( uint8_t buffer,
uint8_t  length,
uint16_t  crc 
)

Calculate the CRC-16 CCITT of buffer that is length bytes long.

The crc parameter allow the calculation on the CRC on multiple buffers.

Parameters:
buffer Pointer to data buffer.
length number of bytes in data buffer
crc starting value
Returns:
CRC-16 of buffer[0 .. length]

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().

Here is the call graph for this function:

void sysLogGPSData (  ) 

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().

Here is the call graph for this function:


Generated on Sun Oct 5 11:25:50 2008 for Pico Beacon by  doxygen 1.5.7