Grizzly.ZWave.Notifications (grizzly v0.15.6) View Source

Link to this section Summary

Link to this section Types

Specs

event() :: atom()

Specs

status() :: :enabled | :disabled

Specs

type() :: atom()

Specs

zwave_alarm_status() :: :deactivate | :activate

Link to this section Functions

Link to this function

decode_alarm_types(binary)

View Source

Specs

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

Specs

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

Specs

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

Specs

encode_type_events(atom(), [atom()]) :: binary()
Link to this function

event_from_byte(arg1, arg2)

View Source

Specs

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

Specs

event_to_byte(type(), event()) :: byte()

Get the event byte given the event type

Specs

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

Get the type from the byte

Specs

type_to_byte(type()) :: byte()

Get the byte for the event name