22 #ifndef _PIFACEDIGITAL_H
23 #define _PIFACEDIGITAL_H
32 #define OUTPUT 0x12 // GPIOA
33 #define INPUT 0x13 // GPIOB
uint8_t pifacedigital_read_reg(uint8_t reg, uint8_t hw_addr)
Definition: pifacedigital.c:90
int pifacedigital_open(uint8_t hw_addr)
Definition: pifacedigital.c:37
void pifacedigital_digital_write(uint8_t pin_num, uint8_t value)
Definition: pifacedigital.c:118
void pifacedigital_close(uint8_t hw_addr)
Definition: pifacedigital.c:68
int pifacedigital_wait_for_input(uint8_t *data, int timeout, uint8_t hw_addr)
Definition: pifacedigital.c:133
void pifacedigital_write_reg(uint8_t data, uint8_t reg, uint8_t hw_addr)
Definition: pifacedigital.c:95
uint8_t pifacedigital_read_bit(uint8_t bit_num, uint8_t reg, uint8_t hw_addr)
Definition: pifacedigital.c:100
uint8_t pifacedigital_digital_read(uint8_t pin_num)
Definition: pifacedigital.c:113
void pifacedigital_write_bit(uint8_t data, uint8_t bit_num, uint8_t reg, uint8_t hw_addr)
Definition: pifacedigital.c:105
int pifacedigital_disable_interrupts(void)
Definition: pifacedigital.c:128
int pifacedigital_open_noinit(uint8_t hw_addr)
Definition: pifacedigital.c:22
int pifacedigital_enable_interrupts(void)
Definition: pifacedigital.c:123