sketchbook
|
Macros | |
#define | CHANPIN PINB |
#define | CHAN0 8 |
#define | CHAN1 9 |
#define | CHAN2 10 |
#define | CHAN3 11 |
#define | CHAN4 12 |
#define | CHAN5 13 |
#define | ledPin 13 |
#define | SUMP_RESET 0x00 |
#define | SUMP_ARM 0x01 |
#define | SUMP_QUERY 0x02 |
#define | SUMP_XON 0x11 |
#define | SUMP_XOFF 0x13 |
#define | SUMP_TRIGGER_MASK 0xC0 |
#define | SUMP_TRIGGER_VALUES 0xC1 |
#define | SUMP_TRIGGER_CONFIG 0xC2 |
#define | SUMP_SET_DIVIDER 0x80 |
#define | SUMP_SET_READ_DELAY_COUNT 0x81 |
#define | SUMP_SET_FLAGS 0x82 |
#define | SUMP_SET_RLE 0x0100 |
#define | SUMP_SELF_TEST 0x03 |
#define | SUMP_GET_METADATA 0x04 |
#define | DEBUG_CAPTURE_SIZE 532 |
#define | CAPTURE_SIZE 532 |
#define | DEBUG_ENABLE DDRD = DDRD | B10000000 |
#define | DEBUG_ON PORTD = B10000000 |
#define | DEBUG_OFF PORTD = B00000000 |
#define | DEBUG |
#define | MAX_CAPTURE_SIZE DEBUG_CAPTURE_SIZE |
Functions | |
void | triggerMicro (void) |
void | captureMicro (void) |
void | captureMilli (void) |
void | getCmd (void) |
void | setupDelay (void) |
void | blinkled (void) |
void | get_metadata (void) |
void | debugprint (void) |
void | debugdump (void) |
void | prettydump (void) |
void | setup () |
void | loop () |
Variables | |
int | cmdByte = 0 |
byte | cmdBytes [5] |
byte | savebytes [128] |
int | savecount = 0 |
byte | logicdata [MAX_CAPTURE_SIZE] |
unsigned int | logicIndex = 0 |
unsigned int | triggerIndex = 0 |
unsigned int | readCount = MAX_CAPTURE_SIZE |
unsigned int | delayCount = 0 |
unsigned int | trigger = 0 |
unsigned int | trigger_values = 0 |
unsigned int | useMicro = 0 |
unsigned int | delayTime = 0 |
unsigned long | divider = 0 |
boolean | rleEnabled = 0 |
#define CAPTURE_SIZE 532 |
#define CHAN0 8 |
#define CHAN1 9 |
#define CHAN2 10 |
#define CHAN3 11 |
#define CHAN4 12 |
#define CHAN5 13 |
#define CHANPIN PINB |
#define DEBUG |
#define DEBUG_CAPTURE_SIZE 532 |
#define DEBUG_ENABLE DDRD = DDRD | B10000000 |
#define DEBUG_OFF PORTD = B00000000 |
#define DEBUG_ON PORTD = B10000000 |
#define ledPin 13 |
#define MAX_CAPTURE_SIZE DEBUG_CAPTURE_SIZE |
#define SUMP_ARM 0x01 |
#define SUMP_GET_METADATA 0x04 |
#define SUMP_QUERY 0x02 |
#define SUMP_RESET 0x00 |
#define SUMP_SELF_TEST 0x03 |
#define SUMP_SET_DIVIDER 0x80 |
#define SUMP_SET_FLAGS 0x82 |
#define SUMP_SET_READ_DELAY_COUNT 0x81 |
#define SUMP_SET_RLE 0x0100 |
#define SUMP_TRIGGER_CONFIG 0xC2 |
#define SUMP_TRIGGER_MASK 0xC0 |
#define SUMP_TRIGGER_VALUES 0xC1 |
#define SUMP_XOFF 0x13 |
#define SUMP_XON 0x11 |
void blinkled | ( | void | ) |
void captureMicro | ( | void | ) |
void captureMilli | ( | void | ) |
void debugdump | ( | void | ) |
void debugprint | ( | void | ) |
void get_metadata | ( | void | ) |
void getCmd | ( | void | ) |
void loop | ( | void | ) |
OneWirePJON device status update function.
void prettydump | ( | void | ) |
void setup | ( | void | ) |
Arduino IDE: put your setup code here, to run once.
void setupDelay | ( | void | ) |
void triggerMicro | ( | void | ) |
int cmdByte = 0 |
byte cmdBytes[5] |
unsigned int delayCount = 0 |
unsigned int delayTime = 0 |
unsigned long divider = 0 |
byte logicdata[MAX_CAPTURE_SIZE] |
unsigned int logicIndex = 0 |
unsigned int readCount = MAX_CAPTURE_SIZE |
boolean rleEnabled = 0 |
byte savebytes[128] |
int savecount = 0 |
unsigned int trigger = 0 |
unsigned int trigger_values = 0 |
unsigned int triggerIndex = 0 |
unsigned int useMicro = 0 |