takashi kadono / Mbed OS Nucleo_446

Dependencies:   ssd1331

Embed: (wiki syntax)

« Back to documentation index

RtcResetTest Class Reference

RtcResetTest Class Reference

Inherits mbed_host_tests::BaseHostTest.

Public Member Functions

def setup
def teardown
def rtc_reset_test

Detailed Description

This test checks that a device's RTC keeps count through a reset

It does this by setting the RTC's time, triggering a reset,
delaying and then reading the RTC's time again to ensure
that the RTC is still counting.
Start of the RTC

Definition at line 23 of file rtc_reset.py.


Member Function Documentation

def rtc_reset_test (   self )
Generator for running the reset test

This function calls yield to wait for the next event from
the device. If the device gives the wrong response, then the
generator terminates by returing which raises a StopIteration
exception and fails the test.

Definition at line 61 of file rtc_reset.py.

def setup (   self )
Register callbacks required for the test

Definition at line 39 of file rtc_reset.py.

def teardown (   self )
No work to do here

Definition at line 57 of file rtc_reset.py.