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

Defines the structure and instantiation function for creating a J2735-compliant Intersection Collision Alert message

An ICA defines the alert message type that is emitted to DSRC-capable vehicles entering the vicinity of an intersection in which a collision has occurred

Link to this section Summary

Types

t()

Defines the structure of an IntersectionCollision message and the data elements comprising its fields

Functions

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

Returns the ICA identifying atom recognized by the ASN1 spec

Returns the ICA identifying integer

Link to this section Types

Specs

approach_or_lane() ::
  {:approach, non_neg_integer()} | {:lane, non_neg_integer()}

Specs

t() :: %Kitt.Message.ICA{
  eventFlag: Kitt.Types.event_flag(),
  id: non_neg_integer(),
  intersectionID: Kitt.Types.intersection_reference_id(),
  laneNumber: approach_or_lane(),
  msgCnt: non_neg_integer(),
  partOne: Kitt.Message.BSM.CoreData.t(),
  path: Kitt.Types.path_history(),
  pathPrediction: Kitt.Types.path_prediction(),
  regional: [Kitt.Types.regional_extension()],
  timeStamp: Kitt.Types.minute_of_year()
}

Defines the structure of an IntersectionCollision message and the data elements comprising its fields

Link to this section Functions

Specs

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

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

Specs

type() :: atom()

Returns the ICA identifying atom recognized by the ASN1 spec

Specs

type_id() :: non_neg_integer()

Returns the ICA identifying integer