grizzly v0.4.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() :: [0..9]
user_code() :: [0..9]
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_user_code(user_code)
View Source
encode_user_code(user_code)
View Source
encode_user_code(user_code()) :: [48..57]
encode_user_code(user_code()) :: [48..57]
Link to this function
status_to_hex(atom)
View Source
status_to_hex(atom)
View Source
status_to_hex(slot_status()) :: 1 | 0
status_to_hex(slot_status()) :: 1 | 0