Arduino-TWI
Two-Wire Interface (TWI) library for Arduino
|
#include "GPIO.h"
#include "TWI.h"
#include "Driver/DS2482.h"
#include "assert.h"
#include "Hardware/TWI.h"
Go to the source code of this file.
Classes | |
struct | scratchpad_t |
Enumerations | |
enum | { SEARCH_ROM = 0xF0, READ_ROM = 0x33, MATCH_ROM = 0x55, SKIP_ROM = 0xCC, ALARM_SEARCH = 0xEC, CONVERT_T = 0x44, READ_SCRATCHPAD = 0xBE } |
Functions | |
uint8_t | one_wire_crc_update (uint8_t crc, uint8_t data) |
void | setup () |
void | loop () |
Variables | |
Hardware::TWI | twi |
DS2482 | owi (twi) |
const size_t | ROM_MAX = 8 |
const uint8_t | CHARBITS = 8 |
anonymous enum |
Enumerator | |
---|---|
SEARCH_ROM | |
READ_ROM | |
MATCH_ROM | |
SKIP_ROM | |
ALARM_SEARCH | |
CONVERT_T | |
READ_SCRATCHPAD |
Definition at line 26 of file DS2482.ino.
void loop | ( | ) |
Definition at line 136 of file DS2482.ino.
uint8_t one_wire_crc_update | ( | uint8_t | crc, |
uint8_t | data | ||
) |
Definition at line 47 of file DS2482.ino.
void setup | ( | ) |
Definition at line 59 of file DS2482.ino.
const uint8_t CHARBITS = 8 |
Definition at line 23 of file DS2482.ino.
const size_t ROM_MAX = 8 |
Definition at line 22 of file DS2482.ino.
Hardware::TWI twi |
Definition at line 17 of file DS2482.ino.