Garmin 010-00625-00 - Mobile - For BlackBerry Technical Specifications - Page 20

Browse online or download pdf Technical Specifications for GPS Garmin 010-00625-00 - Mobile - For BlackBerry. Garmin 010-00625-00 - Mobile - For BlackBerry 26 pages. Declaration of conformity
Also for Garmin 010-00625-00 - Mobile - For BlackBerry: Quick Start Manual (12 pages), Product Information (4 pages), Declaration Of Conformity (1 pages)

Garmin 010-00625-00 - Mobile - For BlackBerry Technical Specifications
DLE and ETX bytes:
void add_to_que( char data )
{
#define DLE_BYTE 0x10
#define ETX_BYTE 0x03
if ( rx_state == DAT )
{
if ( data == DLE_BYTE )
{
rx_state = DLE;
}
else
{
in_que[ in_que_ptr++ ] = data;
}
}
else if ( rx_state == DLE )
{
if ( data == ETX_BYTE )
{
rx_state = ETX;
}
else
{
rx_state = DAT;
in_que[ in_que_ptr++ ] = data;
}
}
else if ( rx_state == ETX )
{
if ( data == DLE_BYTE )
{
rx_state = DLE;
}
}
if ( in_que_ptr > 255 )
{
in_que_ptr = 0;
}
}
190-00769-00
GPS 10x Technical Specifications
Page 16
Rev. A