This file contains functions to make accessing binary messages from Visual Basic 6 and Python easier to handle.
Examples:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "portable.h"
#include "nmea.h"
#include "sixbit.h"
#include "vdm_parse.h"
#include "seaway.h"
#include "imo.h"
Functions | |
| sixbit *__stdcall | get_msg6_data (aismsg_6 *msg) |
| Get the data struct from a message 6. | |
| sixbit *__stdcall | get_msg8_data (aismsg_8 *msg) |
| Get the data struct from a message 8. | |
| sixbit *__stdcall | get_msg17_data (aismsg_17 *msg) |
| Get the data struct from a message 17. | |
| weather_report *__stdcall | get_weather_report (seaway1_1 *msg, int idx) |
| Get a weather report from seaway1_1 message. | |
| timetag *__stdcall | get_weather_utc_time (weather_report *msg) |
| Get the weather report timetag from a weather_report structure. | |
| wind_report *__stdcall | get_wind_report (seaway1_2 *msg, int idx) |
| Get a wind report from seaway1_2 message. | |
| timetag *__stdcall | get_wind_utc_time (wind_report *msg) |
| Get the wind report timetag from a wind_report structure. | |
| water_level_report *__stdcall | get_water_level_report (seaway1_3 *msg, int idx) |
| Get a water level report from seaway1_3 message. | |
| timetag *__stdcall | get_water_level_utc_time (water_level_report *msg) |
| Get the water level report timetag from a water_level_report structure. | |
| water_flow_report *__stdcall | get_water_flow_report (seaway1_6 *msg, int idx) |
| Get a water flow report from seaway1_6 message. | |
| timetag *__stdcall | get_water_flow_utc_time (water_flow_report *msg) |
| Get the water flow report timetag from a water_flow_report structure. | |
| lock_schedule *__stdcall | get_lock_schedule (seaway2_1 *msg, int idx) |
| Get a lock schedule from seaway2_1 message. | |
| timetag *__stdcall | get_lock_schedule_utc_time (seaway2_1 *msg) |
| Get the lock utc timetag from a seaway2_1 message. | |
| timetag *__stdcall | get_lock_schedule_eta (lock_schedule *msg) |
| Get the lock eta timetag from a lock_schedule structure. | |
| timetag *__stdcall | get_lock_times_utc_time (seaway2_2 *msg) |
| Get the lock utc timetag from a seaway2_2 message. | |
| timetag *__stdcall | get_lock_times_last_ata (seaway2_2 *msg) |
| Get the lock last_ata timetag from a seaway2_2 message. | |
| timetag *__stdcall | get_lock_times_first_eta (seaway2_2 *msg) |
| Get the lock first_eta timetag from a seaway2_2 message. | |
| timetag *__stdcall | get_lock_times_second_eta (seaway2_2 *msg) |
| Get the lock second_eta timetag from a seaway2_2 message. | |
| current_report *__stdcall | get_current_report (pawss1_4 *msg, int idx) |
| Get a current report from pawss1_4 message. | |
| timetag *__stdcall | get_current_utc_time (current_report *msg) |
| Get the current report timetag from a current_report structure. | |
| salinity_report *__stdcall | get_salinity_report (pawss1_5 *msg, int idx) |
| Get a salinity report from pawss1_5 message. | |
| timetag *__stdcall | get_salinity_utc_time (salinity_report *msg) |
| Get the salinity report timetag from a salinity_report structure. | |
| procession_order *__stdcall | get_procession_order (pawss2_3 *msg, int idx) |
| Get a procession order from pawss2_3 message. | |
| timetag *__stdcall | get_procession_order_utc_time (pawss2_3 *msg) |
| Get the procession order timetag from a pawss2_3 message. | |
| timetag *__stdcall | get_imo1_12_atd (imo1_12 *msg) |
| Get the atd timetag from imo1_12 message. | |
| timetag *__stdcall | get_imo1_12_eta (imo1_12 *msg) |
| Get the eta timetag from imo1_12 message. | |
| tidal_window *__stdcall | get_tidal_window (imo1_14 *msg, int idx) |
| Get a tidal window from imo1_14 message. | |
| pseudo_target *__stdcall | get_pseudo_target (imo1_17 *msg, int idx) |
| Get a pseudo-target from imo1_17 message. | |
| current_report* __stdcall get_current_report | ( | pawss1_4 * | msg, | |
| int | idx | |||
| ) |
Get a current report from pawss1_4 message.
| msg | pointer to a pawss1_4 message | |
| idx | Index of report to retrieve (0-5) |
| pointer | to a current_report structure |
| timetag* __stdcall get_current_utc_time | ( | current_report * | msg | ) |
Get the current report timetag from a current_report structure.
| msg | pointer to a current_report structure |
| pointer | to a timetag structure |
| lock_schedule* __stdcall get_lock_schedule | ( | seaway2_1 * | msg, | |
| int | idx | |||
| ) |
| timetag* __stdcall get_lock_schedule_eta | ( | lock_schedule * | msg | ) |
Get the lock eta timetag from a lock_schedule structure.
| msg | pointer to a lock_schedule structure |
| pointer | to a timetag structure |
| procession_order* __stdcall get_procession_order | ( | pawss2_3 * | msg, | |
| int | idx | |||
| ) |
| pseudo_target* __stdcall get_pseudo_target | ( | imo1_17 * | msg, | |
| int | idx | |||
| ) |
| salinity_report* __stdcall get_salinity_report | ( | pawss1_5 * | msg, | |
| int | idx | |||
| ) |
Get a salinity report from pawss1_5 message.
| msg | pointer to a pawss1_5 message | |
| idx | Index of report to retrieve (0-5) |
| pointer | to a salinity_report structure |
| timetag* __stdcall get_salinity_utc_time | ( | salinity_report * | msg | ) |
Get the salinity report timetag from a salinity_report structure.
| msg | pointer to a salinity_report structure |
| pointer | to a timetag structure |
| tidal_window* __stdcall get_tidal_window | ( | imo1_14 * | msg, | |
| int | idx | |||
| ) |
| water_flow_report* __stdcall get_water_flow_report | ( | seaway1_6 * | msg, | |
| int | idx | |||
| ) |
Get a water flow report from seaway1_6 message.
| msg | pointer to a seaway1_6 message | |
| idx | Index of report to retrieve (0-5) |
| pointer | to a water_flow_report structure |
| timetag* __stdcall get_water_flow_utc_time | ( | water_flow_report * | msg | ) |
Get the water flow report timetag from a water_flow_report structure.
| msg | pointer to a water_flow_report structure |
| pointer | to a timetag structure |
| water_level_report* __stdcall get_water_level_report | ( | seaway1_3 * | msg, | |
| int | idx | |||
| ) |
Get a water level report from seaway1_3 message.
| msg | pointer to a seaway1_3 message | |
| idx | Index of report to retrieve (0-5) |
| pointer | to a water_level_report structure |
| timetag* __stdcall get_water_level_utc_time | ( | water_level_report * | msg | ) |
Get the water level report timetag from a water_level_report structure.
| msg | pointer to a water_level_report structure |
| pointer | to a timetag structure |
| weather_report* __stdcall get_weather_report | ( | seaway1_1 * | msg, | |
| int | idx | |||
| ) |
Get a weather report from seaway1_1 message.
| msg | pointer to a seaway1_1 message | |
| idx | Index of report to retrieve (0-3) |
| pointer | to a weather_report structure |
| timetag* __stdcall get_weather_utc_time | ( | weather_report * | msg | ) |
Get the weather report timetag from a weather_report structure.
| msg | pointer to a weather_report structure |
| pointer | to a timetag structure |
| wind_report* __stdcall get_wind_report | ( | seaway1_2 * | msg, | |
| int | idx | |||
| ) |
Get a wind report from seaway1_2 message.
| msg | pointer to a seaway1_2 message | |
| idx | Index of report to retrieve (0-5) |
| pointer | to a wind_report structure |
| timetag* __stdcall get_wind_utc_time | ( | wind_report * | msg | ) |
Get the wind report timetag from a wind_report structure.
| msg | pointer to a wind_report structure |
| pointer | to a timetag structure |
1.5.2