auto_api v0.1.0 AutoApi.ChassisSettingsCapability View Source
Basic settings for Chassis Settings Capability
iex> alias AutoApi.ChassisSettingsCapability, as: C
iex> C.identifier
<<0x00, 0x53>>
iex> C.name
:chassis_settings
iex> C.description
"Chassis Settings"
iex> C.command_name(0x00)
:get_chassis_settings
iex> C.command_name(0x01)
:chassis_settings
iex> C.command_name(0x02)
:set_driving_mode
iex> C.command_name(0x03)
:start_stop_sport_chrono
iex> C.command_name(0x04)
:set_spring_rate
iex> C.command_name(0x05)
:set_chassis_position
iex> length(C.properties)
4
iex> List.last(C.properties)
{0x04, :chassis_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: Chassis Settings
Retunrs capability’s identifier: <<0x0, 0x53>>
Returns capability’s unique name: chassis_settings
Retunrs properties under Chassis Settings:
[{0x1, :driving_mode}, {0x2, :sport_chrono}, {0x3, :spring_rate}, {0x4, :chassis_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
command_type() :: :get_chassis_settings | :chassis_settings | :set_driving_mode | :start_stop_sport_chrono | :set_spring_rate | :set_chassis_position
Link to this section Functions
Deprecated. Use API level 5 and above.
Retunrs capabilities under Chassis Settings:
[]
Deprecated. Use API level 5 and above.
Returns capability size: 1
Returns the command module related to this capability
command_id(AutoApi.ChassisSettingsCapability.command_type()) :: integer() | nil
Return commands id based on atom
command_name(integer()) :: AutoApi.ChassisSettingsCapability.command_type() | nil
Returns commands readable name.
Available commands:
%{0x0 => :get_chassis_settings, 0x1 => :chassis_settings, 0x2 => :set_driving_mode, 0x3 => :start_stop_sport_chrono, 0x4 => :set_spring_rate, 0x5 => :set_chassis_position}
Returns map of commands id and thier name
[{0x0, :get_chassis_settings}, {0x1, :chassis_settings}, {0x2, :set_driving_mode}, {0x3, :start_stop_sport_chrono}, {0x4, :set_spring_rate}, {0x5, :set_chassis_position}]
Returns capability’s description: Chassis Settings
Retunrs capability’s identifier: <<0x0, 0x53>>
Returns capability’s unique name: chassis_settings
Retunrs properties under Chassis Settings:
[{0x1, :driving_mode}, {0x2, :sport_chrono}, {0x3, :spring_rate}, {0x4, :chassis_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.