Bare Metal Programming Tool Kit
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Static Public Member Functions | List of all members
bmptk::hardware::flipable< pin, flavour > Struct Template Reference

add the flip() method to a pin class More...

#include <pins.h>

Inheritance diagram for bmptk::hardware::flipable< pin, flavour >:

Static Public Member Functions

static void set (bool x)
 set the current level on the pin
 
static void flip ()
 flip (invert) the value fo the pin
 

Detailed Description

template<class pin, int flavour = pin::type>
struct bmptk::hardware::flipable< pin, flavour >

add the flip() method to a pin class

Definition at line 614 of file pins.h.

Member Function Documentation

template<class pin , int flavour = pin::type>
static void bmptk::hardware::flipable< pin, flavour >::flip ( )
inlinestatic

flip (invert) the value fo the pin

This method writes the flipped (inverted) value to the pin. Both flip() and set() save the last value, so it can be inverted by flip().

Definition at line 640 of file pins.h.

template<class pin , int flavour = pin::type>
static void bmptk::hardware::flipable< pin, flavour >::set ( bool  x)
inlinestatic

set the current level on the pin

This method sets the current level output by the pin. When the value is true a logic one (high voltage, Vdd) will appear on the pin, when the value if false a the pin will output a logic zero (low voltage, Vss).The init() method must be called first.

Definition at line 629 of file pins.h.


The documentation for this struct was generated from the following file: