Veethree D7 SDK
Loading...
Searching...
No Matches
otp_manager.h
Go to the documentation of this file.
1
5#ifndef OTP_MANAGER_H
6#define OTP_MANAGER_H
7
8#include "otp_common.h"
9#include "otp_interface.h"
10
11#include <cstdint>
12#include <memory>
13#include <vector>
14
15namespace vsdk::sys {
16
21
47class otp_manager {
48public:
57 static otp_result read(uint32_t word_address, size_t num_words, std::vector<uint32_t>& data);
58
59// NOLINTNEXTLINE(*readability-avoid-unconditional-preprocessor-if*)
60#if 0
68 static otp_result write(uint32_t word_address, const std::vector<uint32_t>& data);
69#endif
70private:
71 otp_manager();
72 static otp_manager* instance();
73
74 struct impl;
75 std::unique_ptr<otp_interface> _impl;
76};
77
79
80} // namespace vsdk::sys
81
82#endif // OTP_MANAGER_H
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_result
OTP operation result codes.
Definition otp_common.h:16
OTP Common Definitions.
OTP Implementation Interface.