grizzly v0.6.4 Grizzly.CommandClass.ScheduleEntryLock View Source

Link to this section Summary

Functions

Given the last two digits of a year, return the year

Given a year, return the last two digits of it

Link to this section Types

Link to this type

daily_repeating_report() View Source
daily_repeating_report() :: %{
  user_id: non_neg_integer(),
  slot_id: non_neg_integer(),
  week_days: weekdays(),
  start_hour: non_neg_integer(),
  start_minute: non_neg_integer(),
  duration_hour: non_neg_integer(),
  duration_minute: non_neg_integer()
}

Link to this type

enable_action() View Source
enable_action() :: :enable | :disable

Link to this type

enabled_value() View Source
enabled_value() :: :enabled | :disabled

Link to this type

enabled_value_byte() View Source
enabled_value_byte() :: 0 | 1

Link to this type

supported_report() View Source
supported_report() :: %{
  week_day_slots: non_neg_integer(),
  year_day_slots: non_neg_integer(),
  daily_repeating: non_neg_integer()
}

Link to this type

weekday() View Source
weekday() ::
  :monday | :tuesday | :wednesday | :thursday | :friday | :saturday | :sunday

Link to this type

weekdays() View Source
weekdays() :: [weekday()]

Link to this type

year_day_report() View Source
year_day_report() :: %{
  user_id: non_neg_integer(),
  slot_id: non_neg_integer(),
  start_year: non_neg_integer(),
  start_month: non_neg_integer(),
  start_day: non_neg_integer(),
  start_hour: non_neg_integer(),
  start_minute: non_neg_integer(),
  stop_year: non_neg_integer(),
  stop_month: non_neg_integer(),
  stop_day: non_neg_integer(),
  stop_hour: non_neg_integer(),
  stop_minute: non_neg_integer()
}

Link to this section Functions

Link to this function

decode_weekdays(mask) View Source
decode_weekdays(byte()) :: weekdays()

Given the last two digits of a year, return the year

Link to this function

encode_enable_action(other) View Source
encode_enable_action(enable_action()) ::
  {:ok, enabled_value_byte()} | {:error, :invalid_arg, any()}

Link to this function

encode_enabled_value(other) View Source
encode_enabled_value(enabled_value()) ::
  {:ok, enabled_value_byte()} | {:error, :invalid_arg, any()}

Link to this function

encode_weekdays(weekdays) View Source
encode_weekdays(weekdays()) :: {:ok, binary()} | {:error, :invalid_arg, any()}

Link to this function

encode_year(year) View Source
encode_year(non_neg_integer()) ::
  {:ok, non_neg_integer()} | {:error, :invalid_arg, any()}

Given a year, return the last two digits of it