sketchbook
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
ds2408.c File Reference
#include "onewire.h"
#include "debug.h"

Macros

#define C_READ_PIO   0xF0
 
#define C_READ_CHANNEL   0xF5
 
#define C_WRITE_CHANNEL   0x5A
 
#define C_WRITE_CONDSEARCH   0xCC
 
#define C_RESET_LATCHES   0xC3
 
#define XMIT(val)
 

Functions

void do_read_pio (void)
 
void do_command (uint8_t cmd)
 
void update_idle (uint8_t bits)
 
void init_state (void)
 
void mainloop (void)
 

Macro Definition Documentation

#define C_READ_CHANNEL   0xF5
#define C_READ_PIO   0xF0
#define C_RESET_LATCHES   0xC3
#define C_WRITE_CHANNEL   0x5A
#define C_WRITE_CONDSEARCH   0xCC
#define XMIT (   val)
Value:
do { \
if(bcrc) { crc = crc16(crc,b); bcrc = 0; } \
crc = crc16(crc,val); \
} while(0)
if(CHK_INT_EN())
Definition: onewire.c:414
int32_t int16_t b
Definition: IMU.cpp:172
uint16_t crc16(uint16_t r, uint8_t x)
Definition: crc.c:24
void xmit_byte(uint8_t val)
Definition: onewire.c:155

Function Documentation

void do_command ( uint8_t  cmd)
void do_read_pio ( void  )
void init_state ( void  )
void mainloop ( void  )
void update_idle ( uint8_t  bits)