Grizzly.ZWave.CommandClasses.UserCredential (grizzly v8.15.3)

View Source

User Credential command class

Summary

Functions

Decodes credential data from a binary based on its type.

Decodes a credential learn operation from a byte value.

Decodes credential operation from a byte value

Decodes a credential rule from a byte value

Decodes a credential type from a byte value

Decodes modifier type from a byte value

Decodes a user operation from a byte value

Decodes a user type from a byte value

Encodes credential data to a binary based on its type.

Encodes the credential learn operation to a byte value.

Encodes credential operation to a byte value

Encodes a credential rule to a byte value

Encodes a credential type to a byte value

Encodes modifier type to a byte value

Encodes a user operation to a byte value

Encodes a user type to a byte value

Types

credential_capabilities()

@type credential_capabilities() :: %{
  learn_supported?: boolean(),
  supported_slots: pos_integer(),
  min_length: pos_integer(),
  max_length: pos_integer(),
  recommended_learn_timeout: non_neg_integer(),
  learn_steps: non_neg_integer(),
  hash_max_length: non_neg_integer()
}

credential_learn_operation()

@type credential_learn_operation() :: :add | :modify

credential_operation()

@type credential_operation() :: :add | :modify | :delete

credential_rule()

@type credential_rule() :: :single | :dual | :triple

credential_type()

@type credential_type() ::
  :none
  | :pin_code
  | :password
  | :rfid
  | :ble
  | :nfc
  | :uwb
  | :eye_biometric
  | :face_biometric
  | :finger_biometric
  | :hand_biometric
  | :unspecified_biometric

modifier_type()

@type modifier_type() :: :dne | :unknown | :zwave | :local | :other

user_operation()

@type user_operation() :: :add | :modify | :delete

user_type()

@type user_type() ::
  :general
  | :programming
  | :non_access
  | :duress
  | :disposable
  | :expiring
  | :remote_only

Functions

decode_credential_data(arg1, data)

@spec decode_credential_data(credential_type(), binary()) :: binary()

Decodes credential data from a binary based on its type.

decode_credential_learn_operation(arg1)

@spec decode_credential_learn_operation(byte()) ::
  credential_learn_operation() | :unknown

Decodes a credential learn operation from a byte value.

decode_credential_operation(arg1)

@spec decode_credential_operation(byte()) :: credential_operation() | :unknown

Decodes credential operation from a byte value

decode_credential_rule(arg1)

@spec decode_credential_rule(byte()) :: credential_rule() | :unknown

Decodes a credential rule from a byte value

decode_credential_type(arg1)

@spec decode_credential_type(byte()) :: credential_type() | :unknown

Decodes a credential type from a byte value

decode_modifier_type(arg1)

@spec decode_modifier_type(byte()) :: modifier_type() | :unknown

Decodes modifier type from a byte value

decode_user_operation(arg1)

@spec decode_user_operation(byte()) :: user_operation() | :unknown

Decodes a user operation from a byte value

decode_user_type(arg1)

@spec decode_user_type(byte()) :: user_type() | :unknown

Decodes a user type from a byte value

encode_credential_data(arg1, data)

@spec encode_credential_data(credential_type(), binary()) :: binary()

Encodes credential data to a binary based on its type.

Passwords are encoded as UTF-16 strings, while other types are left as-is.

encode_credential_learn_operation(atom)

@spec encode_credential_learn_operation(credential_learn_operation()) :: byte()

Encodes the credential learn operation to a byte value.

encode_credential_operation(atom)

@spec encode_credential_operation(credential_operation()) :: byte()

Encodes credential operation to a byte value

encode_credential_rule(atom)

@spec encode_credential_rule(credential_rule()) :: byte()

Encodes a credential rule to a byte value

encode_credential_type(atom)

@spec encode_credential_type(credential_type()) :: byte()

Encodes a credential type to a byte value

encode_modifier_type(atom)

@spec encode_modifier_type(modifier_type()) :: byte()

Encodes modifier type to a byte value

encode_user_operation(atom)

@spec encode_user_operation(user_operation()) :: byte()

Encodes a user operation to a byte value

encode_user_type(atom)

@spec encode_user_type(user_type()) :: byte()

Encodes a user type to a byte value