Firmware SDK
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
bc_module_gps

Driver for BigClown GPS Module. More...

Typedefs

typedef bc_sam_m8q_time_t bc_module_gps_time_t
 Time data structure.
 
typedef bc_sam_m8q_position_t bc_module_gps_position_t
 Position data structure.
 
typedef bc_sam_m8q_altitude_t bc_module_gps_altitude_t
 Altitude data structure.
 
typedef bc_sam_m8q_quality_t bc_module_gps_quality_t
 Quality data structure.
 
typedef bc_sam_m8q_accuracy_t bc_module_gps_accuracy_t
 Accuracy data structure.
 

Enumerations

enum  bc_module_gps_event_t {
  BC_MODULE_GPS_EVENT_ERROR = 0,
  BC_MODULE_GPS_EVENT_START = 1,
  BC_MODULE_GPS_EVENT_UPDATE = 2,
  BC_MODULE_GPS_EVENT_STOP = 3
}
 Callback events. More...
 
enum  bc_module_gps_led_t {
  BC_MODULE_GPS_LED_RED = 0,
  BC_MODULE_GPS_LED_GREEN = 1
}
 Virtual LED channels. More...
 

Functions

bool bc_module_gps_init (void)
 Initialize BigClown GPS Module. More...
 
void bc_module_gps_set_event_handler (bc_module_gps_event_handler_t event_handler, void *event_param)
 Set callback function. More...
 
void bc_module_gps_start (void)
 Start tracking.
 
void bc_module_gps_stop (void)
 Stop tracking.
 
void bc_module_gps_invalidate (void)
 Invalidate navigation data.
 
bool bc_module_gps_get_time (bc_module_gps_time_t *time)
 Get time. More...
 
bool bc_module_gps_get_position (bc_module_gps_position_t *position)
 Get position. More...
 
bool bc_module_gps_get_altitude (bc_module_gps_altitude_t *altitude)
 Get altitude. More...
 
bool bc_module_gps_get_quality (bc_module_gps_quality_t *quality)
 Get quality. More...
 
bool bc_module_gps_get_accuracy (bc_module_gps_accuracy_t *accuracy)
 Get accuracy. More...
 
const bc_led_driver_tbc_module_gps_get_led_driver (void)
 Get LED driver. More...
 

Detailed Description

Driver for BigClown GPS Module.

Enumeration Type Documentation

Callback events.

Enumerator
BC_MODULE_GPS_EVENT_ERROR 

Error event.

BC_MODULE_GPS_EVENT_START 

Start event.

BC_MODULE_GPS_EVENT_UPDATE 

Update event.

BC_MODULE_GPS_EVENT_STOP 

Stop event.

Definition at line 13 of file bc_module_gps.h.

Virtual LED channels.

Enumerator
BC_MODULE_GPS_LED_RED 

LCD red LED channel.

BC_MODULE_GPS_LED_GREEN 

LCD green LED channel.

Definition at line 31 of file bc_module_gps.h.

Function Documentation

bool bc_module_gps_get_accuracy ( bc_module_gps_accuracy_t accuracy)

Get accuracy.

Parameters
[out]accuracyAccuracy data structure
Returns
true On success
false On failure

Definition at line 101 of file bc_module_gps.c.

Here is the call graph for this function:

bool bc_module_gps_get_altitude ( bc_module_gps_altitude_t altitude)

Get altitude.

Parameters
[out]altitudeAltitude data structure
Returns
true On success
false On failure

Definition at line 91 of file bc_module_gps.c.

Here is the call graph for this function:

const bc_led_driver_t* bc_module_gps_get_led_driver ( void  )

Get LED driver.

Returns
Driver for on-board LED

Definition at line 106 of file bc_module_gps.c.

bool bc_module_gps_get_position ( bc_module_gps_position_t position)

Get position.

Parameters
[out]positionPosition data structure
Returns
true On success
false On failure

Definition at line 86 of file bc_module_gps.c.

Here is the call graph for this function:

bool bc_module_gps_get_quality ( bc_module_gps_quality_t quality)

Get quality.

Parameters
[out]qualityQuality data structure
Returns
true On success
false On failure

Definition at line 96 of file bc_module_gps.c.

Here is the call graph for this function:

bool bc_module_gps_get_time ( bc_module_gps_time_t time)

Get time.

Parameters
[out]timeTime data structure
Returns
true On success
false On failure

Definition at line 81 of file bc_module_gps.c.

Here is the call graph for this function:

bool bc_module_gps_init ( void  )

Initialize BigClown GPS Module.

Returns
true On success
false On failure

Definition at line 27 of file bc_module_gps.c.

Here is the call graph for this function:

void bc_module_gps_set_event_handler ( bc_module_gps_event_handler_t  event_handler,
void *  event_param 
)

Set callback function.

Parameters
[in]event_handlerFunction address
[in]event_paramOptional event parameter (can be NULL)

Definition at line 60 of file bc_module_gps.c.