Kitt.Message.EVA (kitt v0.4.0) View Source

Defines the structure and instantiation function for creating a J2735-compliant Emergency Vehicle Alert message

An EVA defines the alert message type emitted by emergency vehicles to other DSRC-capable vehicles entering the vicinity of the incident

Link to this section Summary

Types

t()

Defines the structure of a EmergencyVehicleAlert message and the data elements comprising its component fields

Functions

Produces an EVA message struct from an equivalent map or keyword input

Returns the EVA identifying atom recognized by the ASN1 spec

Returns the EVA identifying integer

Link to this section Types

Specs

t() :: %Kitt.Message.EVA{
  basicType: Kitt.Types.vehicle_type(),
  details: Kitt.Types.emergency_details(),
  id: non_neg_integer(),
  mass: non_neg_integer(),
  regional: [Kitt.Types.regional_extension()],
  responderType: Kitt.Types.responder_group_affected(),
  responseEquip: Kitt.Types.incident_response_equipment(),
  responseType: Kitt.Types.response_type(),
  rsaMsg: Kitt.Message.RSA.t(),
  timeStamp: Kitt.Types.minute_of_year(),
  vehicleType: Kitt.Types.vehicle_group_affected()
}

Defines the structure of a EmergencyVehicleAlert message and the data elements comprising its component fields

Link to this section Functions

Specs

new(map() | keyword()) :: t()

Produces an EVA message struct from an equivalent map or keyword input

Specs

type() :: atom()

Returns the EVA identifying atom recognized by the ASN1 spec

Specs

type_id() :: non_neg_integer()

Returns the EVA identifying integer