mikroSDK Reference Manual
drv_one_wire.h File Reference

Go to the source code of this file.

Data Structures

struct  one_wire_rom_address_t
 Structure for storing One Wire device address. More...
 
struct  one_wire_t
 One Wire Driver initialization configuration structure. More...
 

Enumerations

enum  one_wire_error_t
 One Wire Driver return values. More...
 

Functions

err_t one_wire_open (one_wire_t *obj)
 Opens One Wire Driver object. More...
 
void one_wire_configure_default (one_wire_t *obj)
 Configures One Wire Driver configuration structure. More...
 
err_t one_wire_reset (one_wire_t *obj)
 Resets One Wire bus. More...
 
err_t one_wire_read_rom (one_wire_t *obj, one_wire_rom_address_t *device_rom_address)
 Reads device's ROM information. More...
 
err_t one_wire_skip_rom (one_wire_t *obj)
 Access device's level functions without transmitting ROM information. More...
 
err_t one_wire_match_rom (one_wire_t *obj, one_wire_rom_address_t *device_rom_address)
 Select a specific One Wire capable device on bus. More...
 
err_t one_wire_search_first_device (one_wire_t *obj, one_wire_rom_address_t *one_wire_device_list)
 Search One Wire capable device on bus. More...
 
err_t one_wire_search_next_device (one_wire_t *obj, one_wire_rom_address_t *one_wire_device_list)
 Search One Wire capable devices on bus. More...
 
err_t one_wire_write_byte (one_wire_t *obj, uint8_t *write_data_buffer, size_t write_data_length)
 Writes byte to One Wire bus. More...
 
err_t one_wire_read_byte (one_wire_t *obj, uint8_t *read_data_buffer, size_t read_data_length)
 Reads byte from One Wire bus. More...
 

Enumeration Type Documentation

◆ one_wire_error_t

Enumerator
ONE_WIRE_SUCCESS 

Success.

ONE_WIRE_ERROR 

Error.