Bare Metal Programming Tool Kit
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
List of all members
bmptk::hardware::pin_oc_from< pin > Struct Template Reference

create a pin_oc from another pin More...

#include <pins.h>

Inheritance diagram for bmptk::hardware::pin_oc_from< pin >:
bmptk::hardware::pin_oc

Additional Inherited Members

- Public Types inherited from bmptk::hardware::pin_oc
enum  { type = type_pin_oc }
 identify this type as a type_pin_oc
 
enum  { features = has_none }
 this type has no additional fatures
 
- Static Public Member Functions inherited from bmptk::hardware::pin_oc
static void init ()
 initialize the pin
 
static void set (bool x)
 set the current level on the pin
 
static bool get ()
 get the current level on the pin
 

Detailed Description

template<typename pin>
struct bmptk::hardware::pin_oc_from< pin >

create a pin_oc from another pin

This template creates a pin_oc from the argument pin. The argument pin must be a pin_in_out or a pin_oc.

The pin_in_out_from, pin_in_from, pin_out_from and pin_oc_from templates are used by template algorithms to convert their arguments to the flavour of pin that they expect.

Definition at line 318 of file pins.h.


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