OneWire
Public Functions
Type
Name
OneWire (PinName pin)
uint8_t
reset (void)
void
select (const uint8_t rom)
void
skip (void)
void
write (uint8_t v, uint8_t power = 0)
void
write_bytes (const uint8_t * buf, uint16_t count, bool power = 0)
uint8_t
read (void)
void
read_bytes (uint8_t * buf, uint16_t count)
void
write_bit (uint8_t v)
uint8_t
read_bit (void)
void
depower (void)
void
reset_search ()
void
target_search (uint8_t family_code)
uint8_t
search (uint8_t * newAddr)
Public Static Functions
Type
Name
static uint8_t
crc8 (const uint8_t * addr, uint8_t len)
Public Functions Documentation
function OneWire
OneWire::OneWire (
PinName pin
)
function reset
uint8_t OneWire::reset (
void
)
function select
void OneWire::select (
const uint8_t rom
)
function skip
void OneWire::skip (
void
)
function write
void OneWire::write (
uint8_t v,
uint8_t power = 0
)
function write_bytes
void OneWire::write_bytes (
const uint8_t * buf,
uint16_t count,
bool power = 0
)
function read
uint8_t OneWire::read (
void
)
function read_bytes
void OneWire::read_bytes (
uint8_t * buf,
uint16_t count
)
function write_bit
void OneWire::write_bit (
uint8_t v
)
function read_bit
uint8_t OneWire::read_bit (
void
)
function depower
void OneWire::depower (
void
)
function reset_search
void OneWire::reset_search ()
function target_search
void OneWire::target_search (
uint8_t family_code
)
function search
uint8_t OneWire::search (
uint8_t * newAddr
)
Public Static Functions Documentation
function crc8
static uint8_t OneWire::crc8 (
const uint8_t * addr,
uint8_t len
)
The documentation for this class was generated from the following file: D:/w/hw-libs/\_libs\_/libraries/OneWire.h
Last updated