Firmware
Public Types | Public Member Functions | Static Public Member Functions | List of all members
GPS Class Reference
Inheritance diagram for GPS:

Public Types

enum  Instance : uint8_t { Main = 0, Secondary, Count }
 The GPS allows to run multiple instances.
 

Public Member Functions

 GPS (const char *path, gps_driver_mode_t mode, GPSHelper::Interface interface, bool fake_gps, bool enable_sat_info, Instance instance, unsigned configured_baudrate)
 
void run () override
 
int print_status () override
 Diagnostics - print some basic information about the driver.
 
void schedule_reset (GPSRestartType restart_type)
 Schedule reset of the GPS device.
 
void reset_if_scheduled ()
 Reset device if reset was scheduled.
 

Static Public Member Functions

static int task_spawn (int argc, char *argv[])
 
static int task_spawn (int argc, char *argv[], Instance instance)
 spawn task and select the instance
 
static GPSinstantiate (int argc, char *argv[])
 
static GPSinstantiate (int argc, char *argv[], Instance instance)
 
static int custom_command (int argc, char *argv[])
 
static int print_usage (const char *reason=nullptr)
 
static int run_trampoline_secondary (int argc, char *argv[])
 task spawn trampoline for the secondary GPS
 

Member Function Documentation

§ custom_command()

int GPS::custom_command ( int  argc,
char *  argv[] 
)
static
See also
ModuleBase

§ instantiate()

GPS * GPS::instantiate ( int  argc,
char *  argv[] 
)
static
See also
ModuleBase

§ print_usage()

int GPS::print_usage ( const char *  reason = nullptr)
static
See also
ModuleBase

§ run()

void GPS::run ( )
override
See also
ModuleBase::run()

§ task_spawn()

int GPS::task_spawn ( int  argc,
char *  argv[] 
)
static
See also
ModuleBase

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