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

Defines the structure and instantiation function for creating a J2735-compliant Common Safety Request message.

A CSR is a message defining the request for safety information from one DSRC-capable vehicle to another.

Link to this section Summary

Types

t()

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

Functions

Produces a CSR message struct from an equivalent map or keyword input

Returns the CSR identifying atom recognized by the ASN1 spec

Returns the CSR identifying integer

Link to this section Types

Specs

request_item() ::
  :reserved
  | :itemA
  | :itemB
  | :itemC
  | :itemD
  | :itemE
  | :itemF
  | :itemG
  | :itemI
  | :itemJ
  | :itemK
  | :itemL
  | :itemM
  | :itemN
  | :itemO
  | :itemP
  | :itemQ

Specs

t() :: %Kitt.Message.CSR{
  id: non_neg_integer(),
  msgCnt: non_neg_integer(),
  regional: [Kitt.Types.regional_extension()],
  requests: [request_item()],
  timeStamp: Kitt.Types.minute_of_year()
}

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

Link to this section Functions

Specs

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

Produces a CSR message struct from an equivalent map or keyword input

Returns the CSR identifying atom recognized by the ASN1 spec

Specs

type_id() :: non_neg_integer()

Returns the CSR identifying integer