libDaisy
Hardware Library for Daisy
Loading...
Searching...
No Matches
mcp23x17.h File Reference
#include "per/gpio.h"
#include "per/i2c.h"

Go to the source code of this file.

Classes

class  daisy::Mcp23017Transport
 
struct  daisy::Mcp23017Transport::Config
 
class  daisy::Mcp23X17< Transport >
 
struct  daisy::Mcp23X17< Transport >::Config
 

Namespaces

namespace  daisy
 Hardware defines and helpers for daisy field platform.
 

Typedefs

using daisy::Mcp23017 = Mcp23X17< Mcp23017Transport >
 

Enumerations

enum class  daisy::MCPRegister : uint8_t {
  daisy::IODIR_A = 0x00 , daisy::IODIR_B = 0x01 , daisy::IPOL_A = 0x02 , daisy::IPOL_B = 0x03 ,
  daisy::GPINTEN_A = 0x04 , daisy::GPINTEN_B = 0x05 , daisy::DEFVAL_A = 0x06 , daisy::DEFVAL_B = 0x07 ,
  daisy::INTCON_A = 0x08 , daisy::INTCON_B = 0x09 , daisy::IOCON = 0x0A , daisy::GPPU_A = 0x0C ,
  daisy::GPPU_B = 0x0D , daisy::INTF_A = 0x0E , daisy::INTF_B = 0x0F , daisy::INTCAP_A = 0x10 ,
  daisy::INTCAP_B = 0x11 , daisy::GPIO_A = 0x12 , daisy::GPIO_B = 0x13 , daisy::OLAT_A = 0x14 ,
  daisy::OLAT_B = 0x15
}
 
enum class  daisy::MCPPort : uint8_t { daisy::A = 0 , daisy::B = 1 }
 
enum class  daisy::MCPMode : uint8_t { daisy::INPUT , daisy::INPUT_PULLUP , daisy::OUTPUT }
 

Functions

MCPRegister daisy::operator+ (MCPRegister a, MCPPort b)