Functions | Variables
uart1.c File Reference
#include "LPC214x.h"
#include "interrupt_utils.h"
#include "system.h"
#include "main.h"
#include "uart1.h"
#include "irq.h"
#include "hardware.h"
#include "gpsmath.h"
#include "ssp.h"
Include dependency graph for uart1.c:

Go to the source code of this file.

Functions

void GPS_configure (void)
void parse_NAVSOL (unsigned char, unsigned char)
void parse_POSLLH (unsigned char, unsigned char)
void parse_POSUTM (unsigned char, unsigned char)
void parse_STATUS (unsigned char, unsigned char)
void parse_VELNED (unsigned char, unsigned char)
int ringbuffer1 (unsigned char rw, unsigned char *data, unsigned int count)
void UART1_send (unsigned char *buffer, unsigned char length)
void UART1_send_ringbuffer (void)
void UART1Initialize (unsigned int baud)
void uart1ISR (void)
unsigned char UART1ReadChar (void)
void UART1WriteChar (unsigned char ch)

Variables

volatile unsigned char baudrate1_change = 0
unsigned char chksum_to_check = 0
unsigned char chksum_trigger = 1
unsigned short current_chksum
unsigned char data_requested = 0
unsigned char DataOutputsPerSecond
static volatile unsigned char GPS_ACK_received = 0
const unsigned char GPS_CFG_ANT [10]
const unsigned char GPS_CFG_CFG [19]
const unsigned char GPS_CFG_MSG [11][12]
const unsigned char GPS_CFG_NAV2 [46]
const unsigned char GPS_CFG_PRT [26]
const unsigned char GPS_CFG_RATE [12]
const unsigned char GPS_CFG_SBAS [14]
unsigned char packets
static volatile unsigned char rb_busy = 0
unsigned char send_buffer [16]
unsigned char startstring [] = {'>','*','>'}
unsigned char stopstring [] = {'<','#','<'}
unsigned char transmission1_running = 0
unsigned char trigger_transmission = 0
unsigned char * tx_buff
unsigned int UART1_rxcount = 0
unsigned char * UART1_rxptr
unsigned char UART1_syncstate = 0
unsigned char UART_CalibDoneFlag = 0
unsigned int uart_cnt
int ZeroDepth

Function Documentation

void GPS_configure ( void  )

Definition at line 577 of file uart1.c.

void parse_NAVSOL ( unsigned char  c,
unsigned char  reset 
) [inline]

Definition at line 230 of file uart1.c.

void parse_POSLLH ( unsigned char  c,
unsigned char  reset 
) [inline]

Definition at line 164 of file uart1.c.

void parse_POSUTM ( unsigned char  c,
unsigned char  reset 
) [inline]

Definition at line 204 of file uart1.c.

void parse_STATUS ( unsigned char  c,
unsigned char  reset 
) [inline]

Definition at line 258 of file uart1.c.

void parse_VELNED ( unsigned char  c,
unsigned char  reset 
) [inline]

Definition at line 128 of file uart1.c.

int ringbuffer1 ( unsigned char  rw,
unsigned char *  data,
unsigned int  count 
)

Definition at line 530 of file uart1.c.

void UART1_send ( unsigned char *  buffer,
unsigned char  length 
)

Definition at line 507 of file uart1.c.

void UART1_send_ringbuffer ( void  )

Definition at line 517 of file uart1.c.

void UART1Initialize ( unsigned int  baud)

Definition at line 483 of file uart1.c.

void uart1ISR ( void  )

Definition at line 277 of file uart1.c.

unsigned char UART1ReadChar ( void  )

Definition at line 501 of file uart1.c.

void UART1WriteChar ( unsigned char  ch)

Definition at line 495 of file uart1.c.


Variable Documentation

volatile unsigned char baudrate1_change = 0

Definition at line 25 of file uart1.c.

unsigned char chksum_to_check = 0

Definition at line 19 of file uart1.c.

unsigned char chksum_trigger = 1

Definition at line 20 of file uart1.c.

unsigned short current_chksum

Definition at line 18 of file uart1.c.

unsigned char data_requested = 0

Definition at line 15 of file uart1.c.

unsigned char DataOutputsPerSecond

Definition at line 12 of file uart1.c.

volatile unsigned char GPS_ACK_received = 0 [static]

Definition at line 37 of file uart1.c.

const unsigned char GPS_CFG_ANT[10]
Initial value:
                {       0x06, 0x13, 0x04, 0x00, 0x0b, 0x00, 0x0f, 0x38, 0x6f, 0x4f }

Definition at line 77 of file uart1.c.

const unsigned char GPS_CFG_CFG[19]
Initial value:
                {       0x06, 0x09, 0x0d, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00,
                        0x00, 0x00, 0x00, 0x00, 0x07, 0x21, 0xaf }

Definition at line 101 of file uart1.c.

const unsigned char GPS_CFG_MSG[11][12]
Initial value:
                {       {0x06, 0x01, 0x06, 0x00, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x80},
                        {0x06, 0x01, 0x06, 0x00, 0x01, 0x02, 0x00, 0x01, 0x00, 0x00, 0x11, 0x88},
                        {0x06, 0x01, 0x06, 0x00, 0x01, 0x03, 0x00, 0x01, 0x00, 0x00, 0x12, 0x8d},
                        {0x06, 0x01, 0x06, 0x00, 0x01, 0x04, 0x00, 0x00, 0x00, 0x00, 0x12, 0x8f},
                        {0x06, 0x01, 0x06, 0x00, 0x01, 0x06, 0x00, 0x01, 0x00, 0x00, 0x15, 0x9c},
                        {0x06, 0x01, 0x06, 0x00, 0x01, 0x11, 0x00, 0x00, 0x00, 0x00, 0x1f, 0xd0},
                        {0x06, 0x01, 0x06, 0x00, 0x01, 0x12, 0x00, 0x01, 0x00, 0x00, 0x21, 0xd8},
                        {0x06, 0x01, 0x06, 0x00, 0x01, 0x20, 0x00, 0x00, 0x00, 0x00, 0x2e, 0x1b},
                        {0x06, 0x01, 0x06, 0x00, 0x01, 0x21, 0x00, 0x00, 0x00, 0x00, 0x2f, 0x20},
                        {0x06, 0x01, 0x06, 0x00, 0x01, 0x22, 0x00, 0x00, 0x00, 0x00, 0x30, 0x25},
                        {0x06, 0x01, 0x06, 0x00, 0x01, 0x30, 0x00, 0x00, 0x00, 0x00, 0x3e, 0x6b} }

Definition at line 79 of file uart1.c.

const unsigned char GPS_CFG_NAV2[46]
Initial value:
            {     0x06, 0x1a, 0x28, 0x00, 0x05, 0x00, 0x00, 0x00, 0x04, 0x03, 0x0A, 0x02,
                  0x50, 0xc3, 0x00, 0x00, 0x0f, 0x0a, 0x0a, 0x3c, 0x00, 0x01, 0x00, 0x00,
                  0xfa, 0x00, 0xfa, 0x00, 0x64, 0x00, 0x2c, 0x01, 0x00, 0x00, 0x00, 0x00,
                  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x58, 0x64 }

Definition at line 94 of file uart1.c.

const unsigned char GPS_CFG_PRT[26]
Initial value:
                {       0x06, 0x00, 0x14, 0x00, 0x01, 0x00, 0x00, 0x00, 0xd0, 0x08, 0x08, 0x00, 0x00,
                        0xe1, 0x00, 0x00, 0x07, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe4, 0x2d }

Definition at line 74 of file uart1.c.

const unsigned char GPS_CFG_RATE[12]
Initial value:
            {     0x06, 0x08, 0x06, 0x00, 0xc8, 0x00, 0x01, 0x00, 0x00, 0x00, 0xdd, 0x68 }

Definition at line 99 of file uart1.c.

const unsigned char GPS_CFG_SBAS[14]
Initial value:
            {     0x06, 0x16, 0x08, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,
                  0x25, 0x90 }

Definition at line 91 of file uart1.c.

unsigned char packets

Definition at line 11 of file uart1.c.

volatile unsigned char rb_busy = 0 [static]

Definition at line 35 of file uart1.c.

unsigned char send_buffer[16]

Definition at line 27 of file uart1.c.

unsigned char startstring[] = {'>','*','>'}

Definition at line 119 of file uart1.c.

unsigned char stopstring[] = {'<','#','<'}

Definition at line 120 of file uart1.c.

unsigned char transmission1_running = 0

Definition at line 22 of file uart1.c.

unsigned char trigger_transmission = 0

Definition at line 23 of file uart1.c.

unsigned char* tx_buff

Definition at line 28 of file uart1.c.

unsigned int UART1_rxcount = 0

Definition at line 30 of file uart1.c.

unsigned char* UART1_rxptr

Definition at line 31 of file uart1.c.

unsigned char UART1_syncstate = 0

Definition at line 29 of file uart1.c.

unsigned char UART_CalibDoneFlag = 0

Definition at line 33 of file uart1.c.

unsigned int uart_cnt

Definition at line 13 of file uart1.c.

int ZeroDepth


ccny_asctec_firmware_2
Author(s): Ivan Dryanovski, Roberto G. Valenti
autogenerated on Tue Jan 7 2014 11:04:17