AprsParser.Types.MicE (aprs v0.1.2)
View SourceType struct for MicE
Summary
Functions
Implements the Access behaviour for MicE struct. This allows us to access fields using the access syntax: struct[:field] Additionally, it provides support for dynamic access via get_in/update_in/etc.
Gets a value and updates it with the given function.
Removes the given key from the struct with the default implementation.
Types
@type direction() :: :north | :south | :east | :west | :unknown
@type t() :: %AprsParser.Types.MicE{ dti: String.t() | nil, heading: number(), lat_degrees: number(), lat_direction: direction(), lat_fractional: number(), lat_minutes: number(), lon_degrees: number(), lon_direction: direction(), lon_fractional: number(), lon_minutes: number(), longitude_offset: number(), manufacturer: String.t(), message: String.t(), message_code: String.t() | nil, message_description: String.t() | nil, speed: number(), symbol_code: String.t(), symbol_table_id: String.t() }
Functions
Implements the Access behaviour for MicE struct. This allows us to access fields using the access syntax: struct[:field] Additionally, it provides support for dynamic access via get_in/update_in/etc.
Fetch a key from the MicE struct. Special handling for :latitude and :longitude which are calculated from components.
Gets a value and updates it with the given function.
Removes the given key from the struct with the default implementation.