class Panasonic::Display::Protocol2
- Panasonic::Display::Protocol2
- PlaceOS::Driver
- Reference
- Object
Included Modules
- PlaceOS::Driver::Interface::InputSelection(Panasonic::Display::Protocol2::Inputs)
- PlaceOS::Driver::Interface::Muteable
- PlaceOS::Driver::Interface::Powerable
Defined in:
panasonic/display/protocol2.crConstant Summary
-
COMMANDS =
{power_on: "PON", power_off: "POF", power_query: "QPW", input: "IMS", volume: "AVL", volume_query: "QAV", audio_mute: "AMT"}
-
ERRORS =
{"ERR1" => "1: Undefined control command", "ERR2" => "2: Out of parameter range", "ERR3" => "3: Busy state or no-acceptable period", "ERR4" => "4: Timeout or no-acceptable period", "ERR5" => "5: Wrong data length", "ERRA" => "A: Password mismatch", "ER401" => "401: Command cannot be executed", "ER402" => "402: Invalid parameter is sent"}
-
INPUT_LOOKUP =
INPUTS.invert
-
INPUTS =
{Inputs::HDMI => "HM1", Inputs::HDMI2 => "HM2", Inputs::VGA => "PC1", Inputs::DVI => "DVI"}
-
RESPONSES =
COMMANDS.to_h.invert
Class Method Summary
Instance Method Summary
- #disconnected
- #do_poll
-
#input?
There is no input query command
-
#mute(state : Bool = true, index : Int32 | String = 0, layer : MuteLayer = MuteLayer::AudioVideo)
There is no video mute command so this only mutes audio
- #mute? : Bool
- #on_load
- #on_update
- #power(state : Bool)
- #power?(**options) : Bool
- #received(data, task)
-
#switch_to(input : Inputs)
Switches all outputs to the requested input Special case
switch_to 0
should mute all the outputs, if supported - #volume(val : Int32 | Float64)
- #volume? : Int32 | Nil
- #volume_down
- #volume_up
Class Method Detail
Instance Method Detail
def mute(state : Bool = true, index : Int32 | String = 0, layer : MuteLayer = MuteLayer::AudioVideo)
#
There is no video mute command so this only mutes audio
Description copied from module PlaceOS::Driver::Interface::InputSelection(Panasonic::Display::Protocol2::Inputs)
Switches all outputs to the requested input
Special case switch_to 0
should mute all the outputs, if supported