Packages

AutoApi is able to parse and execute Auto API binary data

Current section

Files

Jump to
auto_api lib auto_api capabilities windows_capability.ex
Raw

lib/auto_api/capabilities/windows_capability.ex

# AutoAPI
# Copyright (C) 2018 High-Mobility GmbH
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see http://www.gnu.org/licenses/.
#
# Please inquire about commercial licensing options at
# licensing@high-mobility.com
defmodule AutoApi.WindowsCapability do
@moduledoc """
Basic settings for Windows Capability
iex> alias AutoApi.WindowsCapability, as: W
iex> W.identifier
<<0x00, 0x45>>
iex> W.name
:windows
iex> W.description
"Windows"
iex> W.command_name(0x00)
:get_windows_state
iex> W.command_name(0x01)
:windows_state
iex> W.command_name(0x02)
:open_close_windows
iex> length(W.properties)
1
iex> W.properties
[{0x01, :window}]
"""
@spec_file "specs/windows.json"
@type command_type :: :get_windows_state | :windows_state | :open_close_windows
@command_module AutoApi.NotImplemented
@state_module AutoApi.NotImplemented
use AutoApi.Capability
end