Subversion Repositories group.electronics

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
123 pfowler 1
#ifndef MIO_H
2
#define MIO_H
3
 
4
struct {
5
	uint8_t i2c_addr;
6
} mio;
7
 
8
 
9
inline uint8_t mio_readPin(uint8_t pin);
10
inline uint8_t mio_read(void);
11
inline void mio_latch(uint8_t data);
12
void mio_latchPin(uint8_t pin, uint8_t value);
13
 
14
inline void mio_iodir(uint8_t dir);
15
 
16
inline void mio_pullups(uint8_t pu);
17
 
18
void mio_init();
19
void mio_init_addr(uint8_t i2c_addr);
20
uint8_t mio_readReg(uint8_t address);
21
void mio_writeReg(uint8_t address, uint8_t reg);
22
 
23
#endif