System Library Functions

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


Functions

void sysLogGPSData ()
 Log the current GPS position.
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 sysPAOutput (bool_t state)
 Control the PA output.


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]

Referenced by tncTxPacket().

void sysLogGPSData (  ) 

Log the current GPS position.

References gpsPosition, LOG_COORD, logInt32(), logType(), logUint16(), and logUint8().

Referenced by main().

Here is the call graph for this function:

void sysPAOutput ( bool_t  state  )  [inline]

Control the PA output.

Parameters:
state true to turn on PA; otherwise false

References IO_PA.

Referenced by diagPort(), psk31TimeUpdate(), psk31TxPacket(), tncTimeUpdate(), and tncTxPacket().


Generated on Sun Oct 5 11:29:38 2008 for HF-APRS Beacon by  doxygen 1.5.7