STM32F302x8 DEV

Below are the devices that are interal to the STM32F302x8 MCU. As such these devices are implemented directly for the STM32F302x8.

RTC

class EVT::core::DEV::RTCf302x8 : public EVT::core::DEV::RTC

RTC implementation that makes use of the on-board real time clock on the STM32f302x8.

The onboard RTC can be kept up to date with a coin cell battery.

Public Functions

RTCf302x8()

Empty constructor.

Will startup the RTC.

virtual void getTime(EVT::core::time::TimeStamp &time)

Get the current time as determined by the real time clock.

Parameters

time[out] The time struct to populate

virtual uint32_t getTime()

Get the timestamp since epoch in seconds.

Returns

The time since epoch as determined by the RTC

virtual void setTime(EVT::core::time::TimeStamp &time)

Set the time of the real time clock.

Parameters

time[in] The time to set the RTC to use.