sketchbook
|
#include <avr/io.h>
#include <avr/interrupt.h>
#include <string.h>
#include "onewire.h"
#include "features.h"
#include "crc.h"
#include "debug.h"
Macros | |
#define | NCOUNTERS 2 |
#define | C_WRITE_SCRATCHPAD 0x0F |
#define | C_READ_SCRATCHPAD 0xAA |
#define | C_COPY_SCRATCHPAD 0x55 |
#define | C_READ_MEM 0xF0 |
#define | C_READ_MEM_COUNTER 0xA5 |
#define | NO_ADLAR |
#define | SEND(_x) |
Functions | |
void | do_mem_counter (void) |
void | do_command (uint8_t cmd) |
void | update_idle (uint8_t bits) |
void | init_state (void) |
void | mainloop (void) |
#define C_COPY_SCRATCHPAD 0x55 |
#define C_READ_MEM 0xF0 |
#define C_READ_MEM_COUNTER 0xA5 |
#define C_READ_SCRATCHPAD 0xAA |
#define C_WRITE_SCRATCHPAD 0x0F |
#define NCOUNTERS 2 |
#define NO_ADLAR |
void do_command | ( | uint8_t | cmd | ) |
void do_mem_counter | ( | void | ) |
void init_state | ( | void | ) |
void mainloop | ( | void | ) |
void update_idle | ( | uint8_t | bits | ) |