trikRuntime
trikGui::PowerLevel Class Reference

Performs platform-specific querying of current low power threshold that must be set as boot option. More...

#include <powerLevel.h>

Public Types

enum  Level { Level::sixVolt, Level::twelveVolt }
 Contains values indicating settings for power threshold. More...
 

Static Public Member Functions

static Level currentLevel ()
 Retuns currently selected voltage threshold level by querying GPIO pin 56. More...
 

Detailed Description

Performs platform-specific querying of current low power threshold that must be set as boot option.

Member Enumeration Documentation

Contains values indicating settings for power threshold.

Default value for TRIK is 'twentyVolt' meaning that board will automatically switch off when power voltage is lower than 10V (or 9V on older boards).

Enumerator
sixVolt 

Voltage settings for 6V scheme (used by VEX motors and other strange peripherals).

Voltage settings for 12V scheme (default).

twelveVolt 

Member Function Documentation

PowerLevel::Level PowerLevel::currentLevel ( )
static

Retuns currently selected voltage threshold level by querying GPIO pin 56.


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