Skip to content

TembooOneWire

詳細情報

メンバー

TembooOneWire()

TembooOneWire::TembooOneWire(uint8_t pin)

引数

  • uint8_t pin

reset()

uint8_t TembooOneWire::reset(void)

戻り値

uint8_t

select()

void TembooOneWire::select(const uint8_t rom[8])

引数

  • constuint8_t rom

skip()

void TembooOneWire::skip(void)

write()

void TembooOneWire::write(uint8_t v, uint8_t power=0)

引数

  • uint8_t v
  • uint8_t power

write_bytes()

void TembooOneWire::write_bytes(const uint8_t *buf, uint16_t count, bool power=0)

引数

  • constuint8_t * buf
  • uint16_t count
  • bool power

read()

uint8_t TembooOneWire::read(void)

戻り値

uint8_t

read_bytes()

void TembooOneWire::read_bytes(uint8_t *buf, uint16_t count)

引数

  • uint8_t * buf
  • uint16_t count

write_bit()

void TembooOneWire::write_bit(uint8_t v)

引数

  • uint8_t v

read_bit()

uint8_t TembooOneWire::read_bit(void)

戻り値

uint8_t

depower()

void TembooOneWire::depower(void)
void TembooOneWire::reset_search()
void TembooOneWire::target_search(uint8_t family_code)

引数

  • uint8_t family_code
uint8_t TembooOneWire::search(uint8_t *newAddr, bool search_mode=true)

引数

  • uint8_t * newAddr
  • bool search_mode

戻り値

uint8_t

crc8()

uint8_t TembooOneWire::crc8(const uint8_t *addr, uint8_t len)

引数

  • constuint8_t * addr
  • uint8_t len

戻り値

uint8_t

check_crc16()

bool TembooOneWire::check_crc16(const uint8_t *input, uint16_t len, const uint8_t *inverted_crc, uint16_t crc=0)

引数

  • constuint8_t * input
  • uint16_t len
  • constuint8_t * inverted_crc
  • uint16_t crc

戻り値

bool

crc16()

uint16_t TembooOneWire::crc16(const uint8_t *input, uint16_t len, uint16_t crc=0)

引数

  • constuint8_t * input
  • uint16_t len
  • uint16_t crc

戻り値

uint16_t