Veethree D7 SDK
Loading...
Searching...
No Matches
vsdk::sys::otp_manager Class Reference

Detailed Description

The otp_manager class.

The otp_manager class is responsible for reading and writing One-Time Programmable (OTP) registers from Linux user space. OTP registers store permanent device configuration data, calibration parameters, and other factory-programmed information.

#include <vector>
void fn()
{
using namespace vsdk::sys;
// Read single word
std::vector<uint32_t> single_word;
auto result = otp_manager::read(0xB1, 1, single_word);
// Read multiple words
std::vector<uint32_t> data;
result = otp_manager::read(0x100, 3, data);
}
static otp_result read(uint32_t word_address, size_t num_words, std::vector< uint32_t > &data)
Read OTP register words.
Any entities that belong to the system library.
OTP register manager interface.

#include <otp_manager.h>

Static Public Member Functions

static otp_result read (uint32_t word_address, size_t num_words, std::vector< uint32_t > &data)
 Read OTP register words.

Detailed Description

The otp_manager class.

The otp_manager class is responsible for reading and writing One-Time Programmable (OTP) registers from Linux user space. OTP registers store permanent device configuration data, calibration parameters, and other factory-programmed information.

#include <vector>
void fn()
{
using namespace vsdk::sys;
// Read single word
std::vector<uint32_t> single_word;
auto result = otp_manager::read(0xB1, 1, single_word);
// Read multiple words
std::vector<uint32_t> data;
result = otp_manager::read(0x100, 3, data);
}

Member Function Documentation

◆ read()

otp_result vsdk::sys::otp_manager::read ( uint32_t word_address,
size_t num_words,
std::vector< uint32_t > & data )
static

Read OTP register words.

Parameters
word_addressStarting word address (in 32-bit words)
num_wordsNumber of 32-bit words to read
dataVector to store read data (will be resized as needed)
Returns
OTP operation result
Exceptions
std::runtime_errorcan be thrown if the OTP device cannot be accessed

The documentation for this class was generated from the following file: