1
0
mirror of https://github.com/peterantypas/maiana.git synced 2025-05-16 07:20:08 -07:00
maiana/legacy/application/src/StationData.h
2020-10-02 18:40:04 -07:00

43 lines
980 B
C

/*
* StationData.h
*
* Created on: May 30, 2016
* Author: peter
*/
#ifndef STATIONDATA_H_
#define STATIONDATA_H_
#include <inttypes.h>
#include <time.h>
#include "AISChannels.h"
// Station flags
#define STATION_RX_ONLY 0x01
#define STATION_PRIVACY_MODE 0x02
struct StationData {
uint32_t mmsi; // Vessel MMSI (should be 30 bit)
char name[21]; // Vessel name (all caps)
char callsign[8]; // Radio station call sign assigned with MMSI (if applicable)
uint8_t len; // Length in meters (default: 0)
uint8_t beam; // Beam in meters (default: 0)
uint8_t flags; // Reserved - 0 for now
};
typedef struct {
float swLat;
float swLng;
float neLat;
float neLng;
VHFChannel channA;
VHFChannel channB;
time_t expiration;
} SpecialRegion;
#endif /* STATIONDATA_H_ */