#include <halW1.h>
Go to the source code of this file.
Defines | |
| #define | W1_ANY_FAMILY 0x00 |
| #define | DS2411 0x01 |
Functions | |
| W1Status_t | HAL_SearchW1Device (uint8_t family, uint8_t *data, uint8_t count, uint8_t *actCount) |
| 1-Wire search procedure with search ROM command only | |
| W1Status_t | HAL_AlarmSearchW1Device (uint8_t family, uint8_t *data, uint8_t count, uint8_t *actCount) |
| 1-Wire search procedure with alarm search command only | |
| uint8_t | HAL_ResetW1 (void) |
| Resets all devices connected to the bus. | |
| void | HAL_WriteW1 (uint8_t value) |
| Writes a single byte to the bus. | |
| uint8_t | HAL_ReadW1 (void) |
| Reads a single byte from the bus. | |
Copyright (c) 2008 , Atmel Corporation. All rights reserved. Licensed under Atmel's Limited License Agreement (BitCloudTM).
Definition in file w1.h.
| W1Status_t HAL_SearchW1Device | ( | uint8_t | family, | |
| uint8_t * | data, | |||
| uint8_t | count, | |||
| uint8_t * | actCount | |||
| ) |
1-Wire search procedure with search ROM command only
| [in] | family | - 8-bit family code. |
| [in] | data | - pointer of SRAM where the 8-bytes ROM codes returned by the devices are stored. Attention! Memory size must be equal to (Number of devices) * 8 bytes |
| [in] | count | - number of devices we wish to find. |
| [in] | actCount | - number of devices actually found. |
| W1Status_t HAL_AlarmSearchW1Device | ( | uint8_t | family, | |
| uint8_t * | data, | |||
| uint8_t | count, | |||
| uint8_t * | actCount | |||
| ) |
1-Wire search procedure with alarm search command only
| [in] | family | - 8-bit family code. |
| [in] | data | - pointer of SRAM where the 8-bytes ROM codes returned by the devices are stored. |
| [in] | count | - number of devices we wish to find. |
| [in] | actCount | - number of devices actually found. |
| uint8_t HAL_ResetW1 | ( | void | ) |
Resets all devices connected to the bus.
| void HAL_WriteW1 | ( | uint8_t | value | ) |
Writes a single byte to the bus.
| [in] | value | - byte to write. |
| uint8_t HAL_ReadW1 | ( | void | ) |
Reads a single byte from the bus.
1.5.1-p1