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

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

#include <ports.h>

Inheritance diagram for bmptk::hardware::port_in_from_pins<>:
bmptk::hardware::port_in

Additional Inherited Members

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

Detailed Description

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

create a port_in from a list of pins

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

The pins must be acceptable to pin_in_from.

Definition at line 279 of file ports.h.


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