View Source IS31FL3733.Config (is31fl3733 v0.1.2)

Represents the config byte of the IS31FL3733's configuration register.

Link to this section Summary

Functions

Returns the default configuration.

Encodes a configuration struct into a configuration byte for writing to the configuration register.

Link to this section Types

@type sync_mode() :: :single | :primary | :secondary
@type t() :: %IS31FL3733.Config{
  breathing: boolean(),
  software_shutdown: boolean(),
  sync_mode: sync_mode(),
  trigger_open_short_detection: boolean()
}

Link to this section Functions

@spec default() :: t()

Returns the default configuration.

@spec encode(config :: t()) :: binary()

Encodes a configuration struct into a configuration byte for writing to the configuration register.