Paparazzi UAS  v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
gps_i2c.h File Reference
#include "std.h"
+ Include dependency graph for gps_i2c.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define GPS_I2C_SLAVE_ADDR   (0x42 << 1)
 Default address for u-blox (and others?) More...
 
#define GPS_I2C_BUF_SIZE   256
 
#define gps_i2cEvent()   { if (gps_i2c_done) gps_i2c_event(); }
 
#define gps_i2cChAvailable()   (gps_i2c_rx_insert_idx != gps_i2c_rx_extract_idx)
 
#define gps_i2cGetch()   (gps_i2c_rx_buf[gps_i2c_rx_extract_idx++])
 
#define gps_i2cTransmit(_char)
 
#define gps_i2cSendMessage()
 

Functions

void gps_i2c_init (void)
 
void gps_i2c_event (void)
 
void gps_i2c_periodic (void)
 

Variables

uint8_t gps_i2c_rx_buf [GPS_I2C_BUF_SIZE]
 
uint8_t gps_i2c_rx_insert_idx
 
uint8_t gps_i2c_rx_extract_idx
 
uint8_t gps_i2c_tx_buf [GPS_I2C_BUF_SIZE]
 
uint8_t gps_i2c_tx_insert_idx
 
uint8_t gps_i2c_tx_extract_idx
 
bool_t gps_i2c_done
 
bool_t gps_i2c_data_ready_to_transmit
 

Macro Definition Documentation

#define GPS_I2C_BUF_SIZE   256

Definition at line 31 of file gps_i2c.h.

#define GPS_I2C_SLAVE_ADDR   (0x42 << 1)

Default address for u-blox (and others?)

Definition at line 29 of file gps_i2c.h.

Referenced by gps_ubx_ucenter_config_port().

#define gps_i2cChAvailable ( )    (gps_i2c_rx_insert_idx != gps_i2c_rx_extract_idx)

Definition at line 44 of file gps_i2c.h.

#define gps_i2cEvent ( )    { if (gps_i2c_done) gps_i2c_event(); }

Definition at line 43 of file gps_i2c.h.

#define gps_i2cGetch ( )    (gps_i2c_rx_buf[gps_i2c_rx_extract_idx++])

Definition at line 45 of file gps_i2c.h.

#define gps_i2cSendMessage ( )
Value:
{ \
}
bool_t gps_i2c_data_ready_to_transmit
Definition: gps_i2c.c:34
#define TRUE
Definition: std.h:4
uint8_t gps_i2c_tx_extract_idx
Definition: gps_i2c.c:33

Definition at line 50 of file gps_i2c.h.

#define gps_i2cTransmit (   _char)
Value:
{ \
if (! gps_i2c_data_ready_to_transmit) /* Else transmitting, overrun*/ \
}
uint8_t gps_i2c_tx_buf[GPS_I2C_BUF_SIZE]
Definition: gps_i2c.c:32
bool_t gps_i2c_data_ready_to_transmit
Definition: gps_i2c.c:34
uint8_t gps_i2c_tx_insert_idx
Definition: gps_i2c.c:33
if(PrimarySpektrumState.SpektrumTimer)

Definition at line 46 of file gps_i2c.h.

Function Documentation

void gps_i2c_event ( void  )

Definition at line 82 of file gps_i2c.c.

void gps_i2c_periodic ( void  )

Definition at line 69 of file gps_i2c.c.

Variable Documentation

bool_t gps_i2c_data_ready_to_transmit

Definition at line 34 of file gps_i2c.c.

Referenced by gps_i2c_init().

bool_t gps_i2c_done

Definition at line 34 of file gps_i2c.c.

Referenced by gps_i2c_init().

uint8_t gps_i2c_rx_buf[GPS_I2C_BUF_SIZE]

Definition at line 30 of file gps_i2c.c.

uint8_t gps_i2c_rx_extract_idx

Definition at line 31 of file gps_i2c.c.

Referenced by gps_i2c_init().

uint8_t gps_i2c_rx_insert_idx

Definition at line 31 of file gps_i2c.c.

Referenced by gps_i2c_init().

uint8_t gps_i2c_tx_buf[GPS_I2C_BUF_SIZE]

Definition at line 32 of file gps_i2c.c.

uint8_t gps_i2c_tx_extract_idx

Definition at line 33 of file gps_i2c.c.

uint8_t gps_i2c_tx_insert_idx

Definition at line 33 of file gps_i2c.c.

Referenced by gps_i2c_init().