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.
Dependencies: mbed
onewire.h File Reference
library 1-Wire(www.maxim-ic.com) More...
Go to the source code of this file.
Functions | |
| uint8_t | search_sensors (uint8_t *nSensors, uint8_t *gSensorIDs) |
| search_sensors | |
| uint8_t | ow_PullUp (void) |
| PUL-UP bus OW. | |
| uint8_t | ow_show_id (uint8_t id[], size_t n, char *text) |
| show_id | |
| uint8_t | ow_test_pin (void) |
| test pin onewire bus | |
| uint8_t | ow_reset (void) |
| onewire reset bus | |
| uint8_t | ow_rom_search (uint8_t diff, uint8_t id[]) |
| search romcode | |
| uint8_t | ow_command (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_parasite_enable (void) |
| parasite enable | |
| uint8_t | ow_parasite_disable (void) |
| parasite disable | |
| uint8_t | ow_bit_io (uint8_t b) |
| read write onewire | |
| uint8_t | ow_byte_wr (uint8_t b) |
| byte write on onewire | |
| uint8_t | ow_byte_rd (void) |
| 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 122 of file onewire.cpp.
| uint8_t ow_byte_rd | ( | void | ) |
byte read on onewire
- Parameters:
-
[in] uint8_t b
- Returns:
- Date:
- 20/06/2011
Definition at line 162 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 144 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 216 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
Definition at line 259 of file onewire.cpp.
| uint8_t ow_parasite_disable | ( | void | ) |
| uint8_t ow_parasite_enable | ( | void | ) |
| 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 100 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 175 of file onewire.cpp.
| uint8_t ow_show_id | ( | uint8_t | id[], |
| size_t | n, | ||
| char * | text | ||
| ) |
show_id
- Parameters:
-
[in] id[] = rom_code [in] n number of id[n] [out] text id
- Returns:
- OW_OK or OW_ERROR_CRC
- Date:
- 20/06/2011
Definition at line 62 of file onewire.cpp.
| uint8_t ow_test_pin | ( | void | ) |
| uint8_t search_sensors | ( | uint8_t * | nSensors, |
| uint8_t * | gSensorIDs | ||
| ) |
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 32 of file onewire.cpp.
Generated on Mon Jul 25 2022 04:35:44 by
1.7.2