nerves_key v0.1.1 NervesKey.OTP View Source
This module handles OTP data stored in the Nerves Key.
Link to this section Summary
Functions
Convert a raw configuration to a nice map. Raise if there is an error
Convert a raw configuration to a nice map
Create a Nerves Key OTP data struct
Read Nerves Key information from the OTP data
Convert a nice config map back to a raw configuration
Write Nerves Key information to the OTP zone
Link to this section Types
Link to this type
t()
View Source
t() :: %NervesKey.OTP{ board_name: binary(), flags: non_neg_integer(), manufacturer_sn: binary(), user: <<_::256>> }
Link to this section Functions
Convert a raw configuration to a nice map. Raise if there is an error.
Convert a raw configuration to a nice map.
Create a Nerves Key OTP data struct
Link to this function
read(transport)
View Source
read(ATECC508A.Transport.t()) :: {:ok, t()} | {:error, atom()}
Read Nerves Key information from the OTP data.
Convert a nice config map back to a raw configuration
Link to this function
write(transport, data)
View Source
write(ATECC508A.Transport.t(), binary()) :: :ok | {:error, atom()}
Write Nerves Key information to the OTP zone.