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

create a port_oc from a list of pins More...

#include <ports.h>

Inheritance diagram for bmptk::hardware::port_oc_from_pins<>:
bmptk::hardware::port_oc

Additional Inherited Members

- Public Types inherited from bmptk::hardware::port_oc
enum  { type = type_port_oc }
 identify this type as a type_port_oc
 
enum  { features = has_none }
 this type has no additional fatures
 
- Static Public Member Functions inherited from bmptk::hardware::port_oc
static void init ()
 initialize the port as input
 
static int n_pins ()
 the number of pins in the port, can be 0..32.
 
static void set (unsigned int d)
 set the curret level on the pins in the port
 
static unsigned int get ()
 get the current values of the pins in the port
 

Detailed Description

template<typename...>
class bmptk::hardware::port_oc_from_pins<>

create a port_oc from a list of pins

This class template accepts a list of pins and combines them into a port_oc. The first pin in the list becomes pin 0 in the port, etc.

The pins must be acceptable to pin_oc_from.

Definition at line 385 of file ports.h.


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