tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
etl::experimental::hardware::mcp23017 Namespace Reference

Classes

struct  device
 

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
}
 

Enumeration Type Documentation

◆ address

enum struct address : etl::uint16_t
strong
Enumerator
a20 
a21 
a22 
a23 
a24 
a25 
a26 
a27 

◆ io_direction

enum struct io_direction : etl::uint8_t
strong
Enumerator
all_output 
all_input 
input_O0 
input_O1 
input_O2 
input_O3 
input_O4 
input_O5 
input_O6 
input_O7 

◆ io_polarity

enum struct io_polarity : etl::uint8_t
strong
Enumerator
all_normal 
all_inverted 
inverted_O0 
inverted_O1 
inverted_O2 
inverted_O3 
inverted_O4 
inverted_O5 
inverted_O6 
inverted_O7 

◆ port

enum struct port : etl::uint16_t
strong
Enumerator

◆ pull_up_resistor

enum struct pull_up_resistor : etl::uint8_t
strong
Enumerator
all_disabled 
all_enabled 
enabled_O0 
enabled_O1 
enabled_O2 
enabled_O3 
enabled_O4 
enabled_O5 
enabled_O6 
enabled_O7 

◆ registers

enum struct registers : etl::uint16_t
strong
Enumerator
io_direction_a 
io_direction_b 
IPOLA 
IPOLB 
GPINTENA 
GPINTENB 
DEFVALA 
DEFVALB 
INTCONA 
INTCONB 
GPPUA 
GPPUB 
INTFA 
INTFB 
INTCAPA 
INTCAPB 
GPIOA 
GPIOB 
OLATA 
OLATB