open-access-control-minimal.../libraries/PCATTACH/PCATTACH.h

31 lines
458 B
C
Raw Normal View History

2011-11-28 03:07:57 +00:00
#ifndef _PCATTACH_H_
#define _PCATTACH_H_
#endif
2014-02-23 08:10:11 +00:00
#include <Arduino.h>
2011-11-28 03:07:57 +00:00
class PCATTACH {
public:
PCATTACH();
~PCATTACH();
2014-02-23 08:10:11 +00:00
void PCattachInterrupt(uint8_t pin, void (*userFunc)(void), int mode);
void PCdetachInterrupt(uint8_t pin);
2011-11-28 03:07:57 +00:00
static void PCint(uint8_t);
/*
volatile uint8_t *port_to_pcmask[];
typedef void (*voidFuncPtr)(void);
volatile static voidFuncPtr PCintFunc[];
volatile static uint8_t PCintLast[];
*/
};