|
navit
0.5.3-trunk
|
The Vehicle to gain position data from WinCE. More...
Data Structures | |
| struct | gps_sat |
| struct | vehicle_priv |
Macros | |
| #define | SwitchToThread() Sleep(0) |
| #define | W2A(lpw) |
| #define | A2W(lpa) |
Typedefs | |
| typedef int(WINAPI * | PFN_BthSetMode) (DWORD pBthMode) |
| typedef int(WINAPI * | PFN_BthGetMode) (DWORD *pBthMode) |
Enumerations | |
| enum | file_type { file_type_pipe = 1 , file_type_device , file_type_file , file_type_socket , file_type_serial , file_type_pipe = 1 , file_type_device , file_type_file , file_type_socket } |
Functions | |
| static void | vehicle_wince_disable_watch (struct vehicle_priv *priv) |
| static void | vehicle_wince_enable_watch (struct vehicle_priv *priv) |
| static int | vehicle_wince_parse (struct vehicle_priv *priv, char *buffer) |
| static int | vehicle_wince_open (struct vehicle_priv *priv) |
| static void | vehicle_wince_close (struct vehicle_priv *priv) |
| static void | initBth (struct vehicle_priv *priv) |
| static int | initDevice (struct vehicle_priv *priv) |
| static int | read_win32 (struct vehicle_priv *priv, char *buffer, size_t size) |
| static DWORD WINAPI | wince_reader_thread (LPVOID lParam) |
| static int | vehicle_wince_available_ports (void) |
| static void | vehicle_wince_fix_timeout_cb (struct vehicle_priv *priv) |
| This is a callback function, called when the fix timeout is done. Set the position to invalid. More... | |
| static void | vehicle_wince_restart_fix_timeout (struct vehicle_priv *priv) |
| Cancel previous fix timeout event and add a new one. More... | |
| static void | vehicle_wince_io (struct vehicle_priv *priv) |
| static void | vehicle_wince_destroy (struct vehicle_priv *priv) |
| Frees the wince_vehicle. More... | |
| static int | vehicle_wince_position_attr_get (struct vehicle_priv *priv, enum attr_type type, struct attr *attr) |
| Retrieves a vehicle attribute. More... | |
| static int | vehicle_wince_sat_attr_get (void *priv_data, enum attr_type type, struct attr *attr) |
| static struct vehicle_priv * | vehicle_wince_new (struct vehicle_methods *meth, struct callback_list *cbl, struct attr **attrs) |
| Creates a new wince_vehicle. More... | |
| void | plugin_init (void) |
| Registers the vehicle_wince plugin. More... | |
Variables | |
| char * | _convert = NULL |
| wchar_t * | _wconvert = NULL |
| static int | buffer_size = 1024 |
| struct callback_list * | vehicle_priv::priv_cbl |
| int | vehicle_priv::is_running |
| int | vehicle_priv::thread_up |
| HANDLE | vehicle_priv::m_hGPSDevice |
| HANDLE | vehicle_priv::m_hGPSThread |
| DWORD | vehicle_priv::m_dwGPSThread |
| char * | vehicle_priv::read_buffer |
| int | vehicle_priv::read_buffer_pos |
| int | vehicle_priv::baudrate |
| HMODULE | vehicle_priv::hBthDll |
| PFN_BthSetMode | vehicle_priv::BthSetMode |
| int | vehicle_priv::has_data |
| GMutex | vehicle_priv::lock |
| static struct item_methods | vehicle_wince_sat_methods |
| struct vehicle_methods | vehicle_wince_methods |
The Vehicle to gain position data from WinCE.
| #define A2W | ( | lpa | ) |
| #define SwitchToThread | ( | ) | Sleep(0) |
| #define W2A | ( | lpw | ) |
| typedef int(WINAPI * PFN_BthGetMode) (DWORD *pBthMode) |
| typedef int(WINAPI * PFN_BthSetMode) (DWORD pBthMode) |
| enum file_type |
|
static |
References vehicle_priv::BthSetMode, dbg, vehicle_priv::hBthDll, lvl_debug, lvl_error, and lvl_warning.
Referenced by vehicle_wince_new().
|
static |
| void plugin_init | ( | void | ) |
Registers the vehicle_wince plugin.
The plugin entry point.
References dbg, lvl_debug, and vehicle_wince_new().
|
static |
References buffer_size, vehicle_priv::has_data, vehicle_priv::lock, vehicle_priv::read_buffer, vehicle_priv::read_buffer_pos, and size.
Referenced by vehicle_wince_io().
|
static |
References dbg, L, lvl_debug, and W2A.
Referenced by vehicle_wince_open().
|
static |
References dbg, and lvl_debug.
Referenced by vehicle_wince_destroy(), and vehicle_wince_io().
|
static |
Frees the wince_vehicle.
| priv | vehicle_priv structure for the vehicle |
References vehicle_priv::BthSetMode, vehicle_priv::buffer, vehicle_priv::hBthDll, vehicle_priv::read_buffer, vehicle_priv::source, vehicle_wince_close(), and vehicle_wince_disable_watch().
Referenced by vehicle_wince_new().
|
static |
References dbg, vehicle_priv::is_running, lvl_debug, vehicle_priv::m_hGPSThread, SwitchToThread, and vehicle_priv::thread_up.
Referenced by vehicle_wince_destroy(), vehicle_wince_enable_watch(), and vehicle_wince_io().
|
static |
References dbg, vehicle_priv::is_running, vehicle_priv::lock, lvl_debug, vehicle_priv::m_dwGPSThread, vehicle_priv::m_hGPSThread, vehicle_wince_disable_watch(), and wince_reader_thread().
Referenced by vehicle_wince_new().
|
static |
This is a callback function, called when the fix timeout is done. Set the position to invalid.
| priv | Pointer on the private data of the plugin |
References attr_position_valid_invalid, callback_list_call_attr_0, vehicle_priv::cbl, vehicle_priv::ev_fix_timeout, and vehicle_priv::valid.
Referenced by vehicle_wince_new().
|
static |
References vehicle_priv::buffer, vehicle_priv::buffer_pos, buffer_size, callback_list_call_attr_0, vehicle_priv::cbl, dbg, exit, vehicle_priv::file_type, file_type_file, lvl_debug, lvl_error, lvl_info, vehicle_priv::on_eof, read_win32(), size, vehicle_wince_close(), vehicle_wince_disable_watch(), vehicle_wince_open(), and vehicle_wince_parse().
Referenced by vehicle_wince_new().
|
static |
Creates a new wince_vehicle.
| meth | ? |
| cbl | ? |
| attrs | ? |
References attr_search(), attr::attrs, vehicle_priv::attrs, vehicle_priv::baudrate, vehicle_priv::buffer, buffer_size, callback_cast, callback_list_add(), callback_list_new(), callback_new_1, vehicle_priv::cb_fix_timeout, cbl, vehicle_priv::cbl, vehicle_priv::checksum_ignore, dbg, vehicle_priv::ev_fix_timeout, vehicle_priv::fd, vehicle_priv::file_type, file_type_device, file_type_file, vehicle_priv::fixtime, item::id_hi, item::id_lo, initBth(), lvl_debug, lvl_error, item::meth, attr::num, vehicle_priv::on_eof, vehicle_priv::priv_cbl, item::priv_data, vehicle_priv::read_buffer, vehicle_priv::sat_item, vehicle_priv::source, attr::str, vehicle_priv::time, item::type, attr::u, vehicle_wince_destroy(), vehicle_wince_enable_watch(), vehicle_wince_fix_timeout_cb(), vehicle_wince_io(), vehicle_wince_methods, vehicle_wince_open(), and vehicle_wince_sat_methods.
Referenced by plugin_init().
|
static |
References dbg, lvl_debug, vehicle_priv::source, and vehicle_wince_available_ports().
Referenced by vehicle_wince_io(), and vehicle_wince_new().
|
static |
References attr_position_valid_invalid, attr_position_valid_valid, gps_sat::azimuth, vehicle_priv::buffer, vehicle_priv::checksum_ignore, vehicle_priv::current, vehicle_priv::current_count, dbg, vehicle_priv::direction, gps_sat::elevation, vehicle_priv::fixday, vehicle_priv::fixmonth, vehicle_priv::fixtime, vehicle_priv::fixyear, vehicle_priv::geo, vehicle_priv::hdop, vehicle_priv::height, coord_geo::lat, lat, coord_geo::lng, lvl_debug, lvl_error, lvl_info, vehicle_priv::magnetic_direction, vehicle_priv::next, vehicle_priv::next_count, vehicle_priv::nmea_data, vehicle_priv::nmea_data_buf, p, gps_sat::prn, vehicle_priv::sats_signal, vehicle_priv::sats_used, vehicle_priv::sats_visible, gps_sat::snr, vehicle_priv::speed, vehicle_priv::status, vehicle_priv::valid, and vehicle_wince_restart_fix_timeout().
Referenced by vehicle_wince_io().
|
static |
Retrieves a vehicle attribute.
| priv | vehicle_priv structure for the vehicle |
| type | The attribute type to retrieve |
| attr | Points to an attr structure that will receive the attribute data |
References attr::coord_geo, vehicle_priv::current_count, dbg, vehicle_priv::direction, vehicle_priv::fixday, vehicle_priv::fixiso8601, vehicle_priv::fixmonth, vehicle_priv::fixtime, vehicle_priv::fixyear, vehicle_priv::geo, vehicle_priv::hdop, vehicle_priv::height, item::id_lo, attr::item, lvl_debug, vehicle_priv::magnetic_direction, vehicle_priv::nmea_data, attr::num, attr::numd, vehicle_priv::sat_item, vehicle_priv::sats_signal, vehicle_priv::sats_used, vehicle_priv::sats_visible, vehicle_priv::speed, vehicle_priv::status, attr::str, attr::type, type, attr::u, and vehicle_priv::valid.
|
static |
Cancel previous fix timeout event and add a new one.
| priv | Pointer on the private data of the plugin |
References vehicle_priv::cb_fix_timeout, vehicle_priv::ev_fix_timeout, event_add_timeout(), and event_remove_timeout().
Referenced by vehicle_wince_parse().
|
static |
|
static |
References buffer_size, bytes_read, dbg, event_call_callback(), vehicle_priv::file_type, file_type_file, vehicle_priv::has_data, initDevice(), vehicle_priv::is_running, vehicle_priv::lock, lvl_debug, lvl_error, vehicle_priv::m_hGPSDevice, vehicle_priv::priv_cbl, vehicle_priv::read_buffer, vehicle_priv::read_buffer_pos, vehicle_priv::source, vehicle_priv::status, and vehicle_priv::thread_up.
Referenced by vehicle_wince_enable_watch().
| char* _convert = NULL |
| wchar_t* _wconvert = NULL |
| int vehicle_priv::baudrate |
| PFN_BthSetMode vehicle_priv::BthSetMode |
Referenced by initBth(), and vehicle_wince_destroy().
|
static |
Referenced by read_win32(), vehicle_wince_io(), vehicle_wince_new(), and wince_reader_thread().
| int vehicle_priv::has_data |
Referenced by read_win32(), and wince_reader_thread().
| HMODULE vehicle_priv::hBthDll |
Referenced by initBth(), and vehicle_wince_destroy().
| int vehicle_priv::is_running |
Referenced by initDevice(), vehicle_wince_disable_watch(), vehicle_wince_enable_watch(), and wince_reader_thread().
| GMutex vehicle_priv::lock |
Referenced by read_win32(), vehicle_wince_enable_watch(), and wince_reader_thread().
| DWORD vehicle_priv::m_dwGPSThread |
Referenced by vehicle_wince_enable_watch().
| HANDLE vehicle_priv::m_hGPSDevice |
Referenced by initDevice(), and wince_reader_thread().
| HANDLE vehicle_priv::m_hGPSThread |
Referenced by vehicle_wince_disable_watch(), and vehicle_wince_enable_watch().
| struct callback_list* vehicle_priv::priv_cbl |
Referenced by vehicle_wince_new(), and wince_reader_thread().
| char* vehicle_priv::read_buffer |
Referenced by read_win32(), vehicle_wince_destroy(), vehicle_wince_new(), and wince_reader_thread().
| int vehicle_priv::read_buffer_pos |
Referenced by read_win32(), and wince_reader_thread().
| int vehicle_priv::thread_up |
Referenced by initDevice(), vehicle_wince_disable_watch(), and wince_reader_thread().
| struct vehicle_methods vehicle_wince_methods |
Referenced by vehicle_wince_new().
|
static |
Referenced by vehicle_wince_new().