tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
mcp23017.hpp File Reference

Go to the source code of this file.

Classes

struct  device< Driver >
 

Namespaces

namespace  etl
 
namespace  etl::experimental
 
namespace  etl::experimental::hardware
 
namespace  etl::experimental::hardware::mcp23017
 

Enumerations

enum struct  address : etl::uint16_t {
  a20 = 0x20 , a21 = 0x21 , a22 = 0x22 , a23 = 0x23 ,
  a24 = 0x24 , a25 = 0x25 , a26 = 0x26 , a27 = 0x27
}
 
enum struct  io_direction : etl::uint8_t {
  all_output = 0x00 , all_input = 0xFF , input_O0 = 0x01 , input_O1 = 0x02 ,
  input_O2 = 0x04 , input_O3 = 0x08 , input_O4 = 0x10 , input_O5 = 0x20 ,
  input_O6 = 0x40 , input_O7 = 0x80
}
 
enum struct  io_polarity : etl::uint8_t {
  all_normal = 0x00 , all_inverted = 0xFF , inverted_O0 = 0x01 , inverted_O1 = 0x02 ,
  inverted_O2 = 0x04 , inverted_O3 = 0x08 , inverted_O4 = 0x10 , inverted_O5 = 0x20 ,
  inverted_O6 = 0x40 , inverted_O7 = 0x80
}
 
enum struct  port : etl::uint16_t { a = 0x00 , b = 0x01 }
 
enum struct  pull_up_resistor : etl::uint8_t {
  all_disabled = 0x00 , all_enabled = 0xFF , enabled_O0 = 0x01 , enabled_O1 = 0x02 ,
  enabled_O2 = 0x04 , enabled_O3 = 0x08 , enabled_O4 = 0x10 , enabled_O5 = 0x20 ,
  enabled_O6 = 0x40 , enabled_O7 = 0x80
}
 
enum struct  registers : etl::uint16_t {
  io_direction_a = 0x00 , io_direction_b = 0x01 , IPOLA = 0x02 , IPOLB = 0x03 ,
  GPINTENA = 0x04 , GPINTENB = 0x05 , DEFVALA = 0x06 , DEFVALB = 0x07 ,
  INTCONA = 0x08 , INTCONB = 0x09 , GPPUA = 0x0C , GPPUB = 0x0D ,
  INTFA = 0x0E , INTFB = 0x0F , INTCAPA = 0x10 , INTCAPB = 0x11 ,
  GPIOA = 0x12 , GPIOB = 0x13 , OLATA = 0x14 , OLATB = 0x15
}