Bare Metal Programming Tool Kit
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Types | Static Public Member Functions | List of all members
bmptk::hardware::pin_out Struct Reference

output pin interface More...

#include <pins.h>

Inheritance diagram for bmptk::hardware::pin_out:
bmptk::hardware::pin_out_from< pin > bmptk::hardware::tee<> bmptk::hardware::tee<>

Public Types

enum  { type = type_pin_out }
 identify this type as a type_pin_out
 
enum  { features = has_none }
 this type has no additional fatures
 

Static Public Member Functions

static void init ()
 initialize the pin as output
 
static void set (bool x)
 set the current level on the pin
 

Detailed Description

output pin interface

This class defines the interface of an output pin.

This class is to be used as parent class for classes that provide the pin_out interface.

Definition at line 80 of file pins.h.

Member Function Documentation

static void bmptk::hardware::pin_out::init ( )
static

initialize the pin as output

This method initializes the pin as output pin. This might involve configuring the pin as gpio, and disabling analog or other special functions.

static void bmptk::hardware::pin_out::set ( bool  x)
static

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.


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