View Source Grizzly.ZWave.Notifications (grizzly v5.2.7)

Link to this section Summary

Link to this section Types

@type event() :: atom()
@type status() :: :enabled | :disabled
@type type() :: atom()
@type zwave_alarm_status() :: :deactivate | :activate

Link to this section Functions

Link to this function

decode_alarm_types(binary)

View Source
@spec decode_alarm_types(binary()) :: {:ok, [atom()]} | {:error, :invalid_type}
Link to this function

decode_event_params(zwave_type, zwave_event, params_binary)

View Source
Link to this function

decode_type_events(type, binary)

View Source
@spec decode_type_events(atom(), binary()) ::
  {:error, :invalid_type} | {:error, :invalid_type_event} | {:ok, [atom()]}
Link to this function

encode_alarm_types(alarm_types)

View Source
@spec encode_alarm_types([atom()]) :: binary()
Link to this function

encode_event_params(zwave_type, zwave_event, event_params_list)

View Source
Link to this function

encode_type_events(type, events)

View Source
@spec encode_type_events(atom(), [atom()]) :: binary()
Link to this function

event_from_byte(arg1, arg2)

View Source
@spec event_from_byte(type(), byte()) ::
  {:ok, event()} | {:error, :invalid_event_byte}

Get the event from the byte given the notification type

Link to this function

event_to_byte(atom1, atom2)

View Source
@spec event_to_byte(type(), event()) :: byte()

Get the event byte given the event type

@spec type_from_byte(byte()) :: {:ok, type()} | {:error, :invalid_type_byte}

Get the type from the byte

@spec type_to_byte(type()) :: byte()

Get the byte for the event name