Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
onewire.h File Reference
library 1-Wire(www.maxim-ic.com) More...
Go to the source code of this file.
Functions | |
| char * | ow_show_id (uint8_t id[], char *text) |
| show_id | |
| uint64_t | uint64_id (uint8_t id[]) |
| uint64_id | |
| uint8_t | search_sensors (uint8_t *nSensors, uint8_t id[][OW_ROMCODE_SIZE]) |
| search_sensors | |
| uint8_t | search_sensors (uint8_t n, uint8_t *nSensors, uint8_t gSensorIDs[][MAXSENSORS][OW_ROMCODE_SIZE]) |
| search_sensors | |
| uint8_t | ow_PullUp (void) |
| PUL-UP bus OW. | |
| uint8_t | ow_PullUp (uint8_t n) |
| PUL-UP bus OW. | |
| uint8_t | ow_test_pin (void) |
| test pin onewire bus | |
| uint8_t | ow_test_pin (uint8_t n) |
| test pin onewire bus | |
| uint8_t | ow_reset (void) |
| onewire reset bus | |
| uint8_t | ow_reset (uint8_t n) |
| onewire reset bus | |
| uint8_t | ow_rom_search (uint8_t diff, uint8_t id[]) |
| search romcode | |
| uint8_t | ow_rom_search (uint8_t n, uint8_t diff, uint8_t id[]) |
| search romcode | |
| uint8_t | ow_command (uint8_t command, uint8_t id[]) |
| write command | |
| uint8_t | ow_command (uint8_t n, uint8_t command, uint8_t id[]) |
| write command | |
| uint8_t | ow_find_sensor (uint8_t *diff, uint8_t id[]) |
| find Sensors on 1-Wire-Bus | |
| uint8_t | ow_find_sensor (uint8_t n, uint8_t *diff, uint8_t id[]) |
| find Sensors on 1-Wire-Bus | |
| uint8_t | ow_parasite_enable (void) |
| parasite enable | |
| uint8_t | ow_parasite_enable (uint8_t n) |
| parasite enable | |
| uint8_t | ow_parasite_disable (void) |
| parasite disable | |
| uint8_t | ow_parasite_disable (uint8_t n) |
| parasite disable | |
| uint8_t | ow_bit_io (uint8_t b) |
| read write onewire | |
| uint8_t | ow_bit_io (uint8_t n, uint8_t b) |
| read write onewire | |
| uint8_t | ow_byte_wr (uint8_t b) |
| byte write on onewire | |
| uint8_t | ow_byte_wr (uint8_t n, uint8_t b) |
| byte write on onewire | |
| uint8_t | ow_byte_rd (void) |
| byte read on onewire | |
| uint8_t | ow_byte_rd (uint8_t n) |
| byte read on onewire | |
Detailed Description
library 1-Wire(www.maxim-ic.com)
Definition in file onewire.h.
Function Documentation
| uint8_t ow_bit_io | ( | uint8_t | b ) |
read write onewire
- Parameters:
-
[in/out] b data
- Returns:
- data
- Date:
- 20/06/2011
Definition at line 365 of file onewire.cpp.
| uint8_t ow_bit_io | ( | uint8_t | n, |
| uint8_t | b | ||
| ) |
read write onewire
- Parameters:
-
[in] n num bus onewire [in/out] b data
- Returns:
- data
- Date:
- 30/08/2011
Definition at line 387 of file onewire.cpp.
| uint8_t ow_byte_rd | ( | void | ) |
| uint8_t ow_byte_rd | ( | uint8_t | n ) |
byte read on onewire
- Parameters:
-
[in] n num onewire
- Returns:
- data
- Date:
- 30/08/2011
Definition at line 460 of file onewire.cpp.
| uint8_t ow_byte_wr | ( | uint8_t | b ) |
byte write on onewire
- Parameters:
-
[in] b data
- Returns:
- data
- Date:
- 20/06/2011
Definition at line 412 of file onewire.cpp.
| uint8_t ow_byte_wr | ( | uint8_t | n, |
| uint8_t | b | ||
| ) |
byte write on onewire
- Parameters:
-
[in] n num bus onewire [in] b data
- Returns:
- data
- Date:
- 30/08/2011
Definition at line 430 of file onewire.cpp.
| uint8_t ow_command | ( | uint8_t | command, |
| uint8_t | id[] | ||
| ) |
write command
- Parameters:
-
[in] command [in] id romcode
- Date:
- 20/06/2011
Definition at line 473 of file onewire.cpp.
| uint8_t ow_command | ( | uint8_t | n, |
| uint8_t | command, | ||
| uint8_t | id[] | ||
| ) |
write command
- Parameters:
-
[in] n num bus onewire [in] command [in] id romcode
- Date:
- 30/08/2011
Definition at line 497 of file onewire.cpp.
| uint8_t ow_find_sensor | ( | uint8_t | n, |
| uint8_t * | diff, | ||
| uint8_t | id[] | ||
| ) |
find Sensors on 1-Wire-Bus
- Parameters:
-
[in] num bus onewire [in/out] diff is the result of the last rom-search [out] is the rom-code of the sensor found
- Returns:
- OW_OK or OW_ERROR
- Date:
- 30/08/2011
Definition at line 170 of file onewire.cpp.
| uint8_t ow_find_sensor | ( | uint8_t * | diff, |
| uint8_t | id[] | ||
| ) |
find Sensors on 1-Wire-Bus
- Parameters:
-
[in/out] diff is the result of the last rom-search [out] is the rom-code of the sensor found
- Returns:
- OW_OK or OW_ERROR
- Date:
- 20/06/2011
Definition at line 143 of file onewire.cpp.
| uint8_t ow_parasite_disable | ( | void | ) |
| uint8_t ow_parasite_disable | ( | uint8_t | n ) |
parasite disable
- Parameters:
-
[in] n num bus onewire
- Date:
- 30/08/2011
Definition at line 551 of file onewire.cpp.
| uint8_t ow_parasite_enable | ( | uint8_t | n ) |
parasite enable
- Parameters:
-
[in] n num bus onewire
- Date:
- 30/08/2011
Definition at line 541 of file onewire.cpp.
| uint8_t ow_parasite_enable | ( | void | ) |
| uint8_t ow_PullUp | ( | uint8_t | n ) |
PUL-UP bus OW.
- Parameters:
-
[in] n num bus onewire
- Returns:
- OW_OK
- Date:
- 30/08/2011
Definition at line 571 of file onewire.cpp.
| uint8_t ow_PullUp | ( | void | ) |
| uint8_t ow_reset | ( | void | ) |
onewire reset bus
- Returns:
- pin ow or OW_SHORT_CIRCUIT
- Date:
- 20/06/2011
Definition at line 318 of file onewire.cpp.
| uint8_t ow_reset | ( | uint8_t | n ) |
onewire reset bus
- Parameters:
-
[in] num bus onewire
- Returns:
- pin ow or OW_SHORT_CIRCUIT
- Date:
- 30/08/2011
Definition at line 340 of file onewire.cpp.
| uint8_t ow_rom_search | ( | uint8_t | n, |
| uint8_t | diff, | ||
| uint8_t | id[] | ||
| ) |
search romcode
- Parameters:
-
[in] num bus onewire [in] uint8_t diff [out] id romcode
- Returns:
- next_diff or OW_LAST_DEVICE or OW_DATA_ERR or OW_PRESENCE_ERR
- Date:
- 30/08/2011
Definition at line 241 of file onewire.cpp.
| uint8_t ow_rom_search | ( | uint8_t | diff, |
| uint8_t | id[] | ||
| ) |
search romcode
- Parameters:
-
[in] uint8_t diff [out] id romcode
- Returns:
- next_diff or OW_LAST_DEVICE or OW_DATA_ERR or OW_PRESENCE_ERR
- Date:
- 20/06/2011
Definition at line 199 of file onewire.cpp.
| char* ow_show_id | ( | uint8_t | id[], |
| char * | text | ||
| ) |
show_id
- Parameters:
-
[in] id[] = rom_code [out] text id
- Date:
- 02/12/2013
Definition at line 29 of file onewire.cpp.
| uint8_t ow_test_pin | ( | void | ) |
test pin onewire bus
- Returns:
- etat pin ow
- Date:
- 20/06/2011
Definition at line 291 of file onewire.cpp.
| uint8_t ow_test_pin | ( | uint8_t | n ) |
test pin onewire bus
- Parameters:
-
[in] num bus one wire
- Returns:
- etat pin ow
- Date:
- 30/08/2011
Definition at line 303 of file onewire.cpp.
| uint8_t search_sensors | ( | uint8_t | n, |
| uint8_t * | nSensors, | ||
| uint8_t | gSensorIDs[][MAXSENSORS][OW_ROMCODE_SIZE] | ||
| ) |
search_sensors
- Parameters:
-
[in] n num bus onewire [out] nSensors number of device onewire [out] gSensorIDs[][][] array of id romcode
- Returns:
- OW_OK or OW_PRESENCE_ERR or OW_DATA_ERR
- Date:
- 02/09/2011
Definition at line 106 of file onewire.cpp.
| uint8_t search_sensors | ( | uint8_t * | nSensors, |
| uint8_t | gSensorIDs[][OW_ROMCODE_SIZE] | ||
| ) |
search_sensors
- Parameters:
-
[out] nSensors number of device onewire [out] gSensorIDs[][] array of id romcode
- Returns:
- OW_OK or OW_PRESENCE_ERR or OW_DATA_ERR
- Date:
- 20/06/2011
Definition at line 74 of file onewire.cpp.
| uint64_t uint64_id | ( | uint8_t | id[] ) |
uint64_id
- Parameters:
-
[in] id[] = rom_code
- Returns:
- [out] uint64_t id
- Date:
- 28/03/2011
Definition at line 55 of file onewire.cpp.
Generated on Mon Jul 18 2022 20:45:44 by
1.7.2