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

Detailed Description

Any entities that belong to the system library.

Classes

class  backlight_manager
 The backlight_manager class. More...
class  board_info
 The board_info class. More...
class  bootloader_manager
 The bootloader_manager class. More...
class  buzzer
 The buzzer class. More...
struct  buzzer_config
 The config class In case the buzzer requires customisation, period and duty cycle can be modified, as well as boosting the volume. More...
struct  buzzer_impl
 an implementation of buzzer_impl_interface that interacts with a real buzzer on the D7 target More...
class  libuboot_raii
 an implementation of libuboot_raii_interface that interacts with a real uboot environment More...
class  otp
 Real OTP implementation for target builds. More...
struct  otp_interface
 Interface for OTP register operations. More...
class  otp_manager
 The otp_manager class. More...
class  rgb_button_backlight
 The rgb_button_backlight class. More...

Enumerations

enum class  buzzer_boost : uint8_t {
  no_boost , boost1 , boost2 , boost3 ,
  boost4 , boost5
}
 Define how loud the buzzer will be, the default value is the quietest no_boost while boost5 is the loudest.
enum class  otp_result : uint8_t {
  success = 0 , error , invalid_params , device_access_failed ,
  read_failed
}
 OTP operation result codes.

Functions

std::string to_string (otp_result result)
 Convert OTP result to string representation.

Variables

constexpr uint32_t buzzer_default_period { 500'000 }
 buzzer_default_period - default time in nanoseconds used for generating the buzzer, as per Linux PWM sysfs API.
constexpr double buzzer_default_duty_cycle { 0.5 }
 buzzer_default_duty_cycle - default duty cycle as percentage of period.
constexpr uint32_t otp_word_size = 4
 OTP word size in bytes.

Detailed Description

Any entities that belong to the system library.

Function Documentation

◆ to_string()

std::string vsdk::sys::to_string ( otp_result result)
inline

Convert OTP result to string representation.

Parameters
resultThe OTP result code
Returns
String description of the result