Lamp-Da 0.1
A compact lantern project
Loading...
Searching...
No Matches
Namespaces | Functions
registers.h File Reference

Interface for the platform specific microcontroler registers. More...

Go to the source code of this file.

Namespaces

namespace  lampda
 Program scope.
 
namespace  lampda::platform
 Handle the platform specific interactions.
 
namespace  lampda::platform::registers
 Define the interaction layer with the system specific registers.
 

Functions

void lampda::platform::registers::setup_watchdog (const uint32_t timeoutDelaySecond)
 Setup the software watchedog.
 
void lampda::platform::registers::kick_watchdog (const uint8_t registerId)
 Notify the software watchedog that we are alive.
 
uint64_t lampda::platform::registers::get_device_serial_number ()
 get serial number
 
void lampda::platform::registers::setup_adc (const uint8_t resolution)
 setup the ADC
 
uint8_t lampda::platform::registers::get_wire_interface_count ()
 get the number of wire com interfaces
 
void lampda::platform::registers::enter_serial_dfu ()
 enter the dfu program mode
 
bool lampda::platform::registers::is_voltage_detected_on_vbus ()
 voltage is detected on VBUS line
 
bool lampda::platform::registers::is_started_from_reset ()
 microcontroler restarted after a reset
 
bool lampda::platform::registers::is_started_from_watchdog ()
 reset after a watchdog timeout
 
bool lampda::platform::registers::is_started_from_interrupt ()
 started by user interrupt
 
float lampda::platform::registers::read_CPU_temperature_degreesC ()
 make a read of the CPU temp
 
void lampda::platform::registers::go_to_sleep (const int wakeUpPin)
 Put the system to sleep, with a wake up pin.
 

Detailed Description

Interface for the platform specific microcontroler registers.