PS_Fgen_FW  4da88f4073c1cc65ea45c3a652a2751e495e50db
Firmware for an Power Supply and Function Generator build from an ATX power supply
Loading...
Searching...
No Matches
MCP23S08.h File Reference

Containing methods to control the MCP23S08 SPI IO expander Based on https://github.com/julianschuler/MCP23S08/blob/master/MCP23S08.h. More...

#include <stdint.h>

Go to the source code of this file.

Classes

class  MCP23S08
 

Macros

#define SELECT_MCP23S08   SPI_SELECT_IO_EXP
 Select the MCP23S08 IO expander by pulling the IO_EXP_CS pin low.
 
#define DESELECT_MCP23S08   SPI_DESELECT_IO_EXP
 Deselect the MCP23S08 IO expander by pulling the IO_EXP_CS pin high.
 
#define MCP23S08_IODIR   0x00
 
#define MCP23S08_IPOL   0x01
 
#define MCP23S08_GPINTEN   0x02
 
#define MCP23S08_DEFVAL   0x03
 
#define MCP23S08_INTCON   0x04
 
#define MCP23S08_IOCON   0x05
 
#define MCP23S08_GPPU   0x06
 
#define MCP23S08_INTF   0x07
 
#define MCP23S08_INTCAP   0x08
 
#define MCP23S08_GPIO   0x09
 
#define MCP23S08_OLAT   0x0A
 

Typedefs

typedef enum MCP23S08_PinModes MCP23S08_PinModes_t
 Enumeration with all MCP23S08 pin modes.
 

Enumerations

enum  MCP23S08_PinModes { MCP23S08_PINMODE_OUTPUT , MCP23S08_PINMODE_INPUT , MCP23S08_PINMODE_INPUT_PULLUP }
 Enumeration with all MCP23S08 pin modes. More...
 

Detailed Description

Containing methods to control the MCP23S08 SPI IO expander Based on https://github.com/julianschuler/MCP23S08/blob/master/MCP23S08.h.

Date
29.08.2024 18:54:39
Author
Markus Scheich

Enumeration Type Documentation

◆ MCP23S08_PinModes

Enumeration with all MCP23S08 pin modes.

Enumerator
MCP23S08_PINMODE_OUTPUT 

MCP23S08 pin is output.

MCP23S08_PINMODE_INPUT 

MCP23S08 pin is input.

MCP23S08_PINMODE_INPUT_PULLUP 

MCP23S08 pin is input with enabled pullup.