mikroSDK Reference Manual
hal_one_wire.h File Reference

Go to the source code of this file.

Data Structures

struct  hal_one_wire_rom_address_t
 Structure for storing One Wire device address. More...
 
struct  hal_one_wire_t
 One Wire HAL initialization configuration structure. More...
 

Enumerations

enum  hal_one_wire_err_t
 

Functions

err_t hal_one_wire_open (hal_one_wire_t *obj)
 Opens One Wire HAL object. More...
 
void hal_one_wire_configure_default (hal_one_wire_t *obj)
 Configures One Wire HAL configuration structure. More...
 
err_t hal_one_wire_reset (hal_one_wire_t *obj)
 Resets One Wire bus. More...
 
err_t hal_one_wire_read_rom (hal_one_wire_t *obj, hal_one_wire_rom_address_t *device_rom_address)
 Reads device's ROM information. More...
 
err_t hal_one_wire_skip_rom (hal_one_wire_t *obj)
 Access device's level functions without transmitting ROM information. More...
 
err_t hal_one_wire_match_rom (hal_one_wire_t *obj, hal_one_wire_rom_address_t *device_rom_address)
 Select a specific One Wire capable device on bus. More...
 
err_t hal_one_wire_search_first_device (hal_one_wire_t *obj, hal_one_wire_rom_address_t *one_wire_device_list)
 Search One Wire capable device on bus. More...
 
err_t hal_one_wire_search_next_device (hal_one_wire_t *obj, hal_one_wire_rom_address_t *one_wire_device_list)
 Search One Wire capable devices on bus. More...
 
err_t hal_one_wire_write_byte (hal_one_wire_t *obj, uint8_t *write_data_buffer, size_t write_data_length)
 Writes byte to One Wire bus. More...
 
err_t hal_one_wire_read_byte (hal_one_wire_t *obj, uint8_t *read_data_buffer, size_t read_data_length)
 Reads byte from One Wire bus. More...
 
void one_wire_timing_value_a (void)
 Configures device-specific timing "a" sequence value. More...
 
void one_wire_timing_value_b (void)
 Configures device-specific timing "b" sequence value. More...
 
void one_wire_timing_value_c (void)
 Configures device-specific timing "c" sequence value. More...
 
void one_wire_timing_value_d (void)
 Configures device-specific timing "d" sequence value. More...
 
void one_wire_timing_value_e (void)
 Configures device-specific timing "e" sequence value. More...
 
void one_wire_timing_value_f (void)
 Configures device-specific timing "f" sequence value. More...
 
void one_wire_timing_value_h (void)
 Configures device-specific timing "h" sequence value. More...
 
void one_wire_timing_value_i (void)
 Configures device-specific timing "i" sequence value. More...
 
void one_wire_timing_value_j (void)
 Configures device-specific timing "j" sequence value. More...
 

Enumeration Type Documentation

◆ hal_one_wire_err_t

Enum containing predefined module return values.

Enumerator
HAL_ONE_WIRE_SUCCESS 

Success.

HAL_ONE_WIRE_ERROR 

Error.