Veethree D7 SDK
Loading...
Searching...
No Matches
otp.h
Go to the documentation of this file.
1
5#ifndef OTP_H
6#define OTP_H
7
8#include "otp_interface.h"
9#include <cstdint>
10#include <vector>
11
12namespace vsdk::sys {
13
17class otp : public otp_interface {
18public:
19 otp() = default;
20 ~otp() override = default;
21
25 otp_result read(uint32_t word_address, size_t num_words, std::vector<uint32_t>& data) override;
26
28
31 otp_result write(uint32_t word_address, const std::vector<uint32_t>& data) override;
33
34private:
40 int open_otp_device(bool write_mode) const;
41
48 bool verify_write(uint32_t word_address, const std::vector<uint32_t>& expected_data) const;
49};
50
51} // namespace vsdk::sys
52
53#endif // OTP_H
otp_result read(uint32_t word_address, size_t num_words, std::vector< uint32_t > &data) override
Read OTP registers from hardware.
Any entities that belong to the system library.
otp_result
OTP operation result codes.
Definition otp_common.h:16
OTP Implementation Interface.
Interface for OTP register operations.
Definition otp_interface.h:17