BSP430  20141115
Board Support Package for MSP430 microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Data Fields
sBSP430gpsConfiguration Struct Reference

#include <bsp430/utility/gps.h>

Data Fields

tBSP430periphHandle nmea_serial
 
unsigned long nmea_baud
 
tBSP430periphHandle pps_port
 
unsigned int pps_port_bit
 
tBSP430periphHandle pps_timer
 
int pps_ccidx
 
unsigned int pps_ccis
 
iBSP430gpsSerialCallback_ni serial_cb
 
iBSP430gpsPPSCallback_ni pps_cb
 

Detailed Description

Information required to initialize a GPS driver.

Examples:
sensors/venus6pps/main.c.

Field Documentation

unsigned long sBSP430gpsConfiguration::nmea_baud

Baud rate for the NMEA serial connection

Examples:
sensors/venus6pps/main.c.
tBSP430periphHandle sBSP430gpsConfiguration::nmea_serial

Handle for the serial peripheral used for NMEA messages. The HAL interface must have been requested.

Examples:
sensors/venus6pps/main.c.
iBSP430gpsPPSCallback_ni sBSP430gpsConfiguration::pps_cb

A callback invoked by the driver when a 1PPS signal is received. This may be a null pointer if 1PPS captures are not needed.

Examples:
sensors/venus6pps/main.c.
int sBSP430gpsConfiguration::pps_ccidx

The capture/compare index on pps_timer that's used to capture the 1PPS signal. This should be associated with pps_port and pps_pin.

Examples:
sensors/venus6pps/main.c.
unsigned int sBSP430gpsConfiguration::pps_ccis

The capture/compare input corresponding to pps_port and pps_pin.

Examples:
sensors/venus6pps/main.c.
tBSP430periphHandle sBSP430gpsConfiguration::pps_port

MSP430 port handle on which the 1PPS signal will be coming in. This should correspond to the ccis input of the pps_ccidx capture/compare register of pps_timer. The HAL interface should have been requested. This may be BSP430_PERIPH_NONE if 1PPS signals are not needed.

Examples:
sensors/venus6pps/main.c.
unsigned int sBSP430gpsConfiguration::pps_port_bit

Bit on the pps_port for the 1PPS signal input. This is bit mask (e.g., BIT3), not the bit position.

Examples:
sensors/venus6pps/main.c.
tBSP430periphHandle sBSP430gpsConfiguration::pps_timer

The timer peripheral used to capture the 1PPS signal. This must be externally configured to count in continuous mode from some clock source. The HAL interface must have been requested. Pass BSP430_PERIPH_NONE if 1PPS signals are not needed.

Examples:
sensors/venus6pps/main.c.
iBSP430gpsSerialCallback_ni sBSP430gpsConfiguration::serial_cb

A callback invoked by the driver when a message is successfully received over the NMEA serial port. This may be a null pointer if messages are not needed.

Examples:
sensors/venus6pps/main.c.

The documentation for this struct was generated from the following file: