mirror of
https://github.com/dougg3/mac-rom-simm-programmer.git
synced 2024-09-30 22:58:05 +00:00
4c51019e30
value" functionality into a read function and a write function. Also added ability to set pull-ups.
20 lines
356 B
C
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_ */
|