grizzly v0.8.2 Grizzly.CommandClass.UserCode View Source
Link to this section Summary
Functions
The default empty code to be sent.
Link to this section Types
Link to this type
slot_id()
View Source
slot_id()
View Source
slot_id() :: pos_integer()
slot_id() :: pos_integer()
Link to this type
slot_status()
View Source
slot_status()
View Source
slot_status() :: :occupied | :available
slot_status() :: :occupied | :available
Link to this type
user_code()
View Source
user_code()
View Source
user_code() :: String.t()
user_code() :: String.t()
Link to this section Functions
Link to this function
decode_slot_status(int)
View Source
decode_slot_status(int)
View Source
decode_slot_status(1 | 0) :: slot_status()
decode_slot_status(1 | 0) :: slot_status()
Link to this function
empty_code()
View Source
empty_code()
View Source
empty_code() :: [0, ...]
empty_code() :: [0, ...]
The default empty code to be sent.
This function is useful to use when trying to set a user code slot from occupied to available
Link to this function
encode_status(other) View Source
Link to this function
encode_status(atom, arg2)
View Source
encode_status(atom, arg2)
View Source
encode_status(slot_status(), map()) ::
{:ok, 1 | 0} | {:error, :invalid_arg, any()}
encode_status(slot_status(), map()) :: {:ok, 1 | 0} | {:error, :invalid_arg, any()}
Link to this function