mac-rom-simm-programmer/mcp23s17.h
Doug Brown 4c51019e30 Moved the common "read/write register A and B together as a 16-bit
value" functionality into a read function and a write function. Also
added ability to set pull-ups.
2011-11-26 22:17:17 -08:00

20 lines
356 B
C

/*
* mcp23s17.h
*
* Created on: Nov 25, 2011
* Author: Doug
*/
#ifndef MCP23S17_H_
#define MCP23S17_H_
#include <stdint.h>
void MCP23S17_Init();
void MCP23S17_SetDDR(uint16_t ddr);
void MCP23S17_SetPins(uint16_t data);
uint16_t MCP23S17_ReadPins(void);
void MCP23S17_SetPullups(uint16_t pullups);
#endif /* MCP23S17_H_ */