auto_api v0.1.0 AutoApi.RaceCapability View Source
Basic settings for Race Capability
iex> alias AutoApi.RaceCapability, as: R
iex> R.identifier
<<0x00, 0x57>>
iex> R.name
:race
iex> R.description
"Race"
iex> R.command_name(0x00)
:get_race_state
iex> R.command_name(0x01)
:race_state
iex> length(R.properties)
13
iex> List.last(R.properties)
{13, :brake_pedal_position}
Link to this section Summary
Functions
Deprecated. Use API level 5 and above
Deprecated. Use API level 5 and above
Returns the command module related to this capability
Return commands id based on atom
Returns commands readable name
Returns map of commands id and thier name
Returns capability’s description: Race
Retunrs capability’s identifier: <<0x0, 0x57>>
Returns capability’s unique name: race
Retunrs properties under Race:
[{0x1, :acceleration}, {0x2, :understeering}, {0x3, :oversteering}, {0x4, :gas_pedal_position}, {0x5, :steering_angle}, {0x6, :brake_pressure}, {0x7, :yaw_rate}, {0x8, :rear_suspension_steering}, {0x9, :electronic_stability_program}, {0xA, :brake_torque_vectoring}, {0xB, :gear_mode}, {0xC, :selected_gear}, {0xD, :brake_pedal_position}]
Returns the command module related to this capability
Returns binary value of capability based on list of available supported capabilities
Returns list of supported sub capability based on binary value
Deprecated. Use API level 5 and above
Deprecated. Use API level 5 and above
Link to this section Types
Link to this section Functions
Deprecated. Use API level 5 and above.
Retunrs capabilities under Race:
[]
Deprecated. Use API level 5 and above.
Returns capability size: 1
Returns the command module related to this capability
command_id(AutoApi.RaceCapability.command_type()) :: integer() | nil
Return commands id based on atom
command_name(integer()) :: AutoApi.RaceCapability.command_type() | nil
Returns commands readable name.
Available commands:
%{0x0 => :get_race_state, 0x1 => :race_state}
Returns map of commands id and thier name
[{0x0, :get_race_state}, {0x1, :race_state}]
Returns capability’s description: Race
Retunrs capability’s identifier: <<0x0, 0x57>>
Returns capability’s unique name: race
Retunrs properties under Race:
[{0x1, :acceleration}, {0x2, :understeering}, {0x3, :oversteering}, {0x4, :gas_pedal_position}, {0x5, :steering_angle}, {0x6, :brake_pressure}, {0x7, :yaw_rate}, {0x8, :rear_suspension_steering}, {0x9, :electronic_stability_program}, {0xA, :brake_torque_vectoring}, {0xB, :gear_mode}, {0xC, :selected_gear}, {0xD, :brake_pedal_position}]
Returns the command module related to this capability
Returns binary value of capability based on list of available supported capabilities
to_map(binary()) :: [command_type()] :: [map()]
Returns list of supported sub capability based on binary value
Level 5:
ie> HmAutoApi.DoorLocksCapability.to_map(<<0x00, 0x20, 0x01, 0x00, 0x02>>)
[:lock_state, :get_lock_state, :lock_unlock_doors]
Level 4:
ie> HmAutoApi.DoorLocksCapability.to_map(<<0x1, 0x0>>)
[%{bin: <<0x00>>, name: "Unavailable", atom: :unavailable, title: ""}]
Deprecated. Use API level 5 and above.
Deprecated. Use API level 5 and above.