Arduino-OWI
One-Wire Interface (OWI) library for Arduino
OWI::Device Class Reference

#include <OWI.h>

Inheritance diagram for OWI::Device:
Inheritance graph
Collaboration diagram for OWI::Device:
Collaboration graph

Public Member Functions

 Device (OWI &owi, const uint8_t *rom=NULL)
 
void rom (const uint8_t *rom)
 
void rom_P (const uint8_t *rom)
 
uint8_t * rom ()
 

Protected Attributes

OWIm_owi
 
uint8_t m_rom [ROM_MAX]
 

Detailed Description

One-Wire Interface (OWI) Device Driver abstract class.

Definition at line 285 of file OWI.h.

Constructor & Destructor Documentation

OWI::Device::Device ( OWI owi,
const uint8_t *  rom = NULL 
)
inline

Construct One-Wire Interface (OWI) Device Driver with given bus and device address.

Parameters
[in]owibus manager.
[in]romcode (default NULL).

Definition at line 293 of file OWI.h.

Member Function Documentation

void OWI::Device::rom ( const uint8_t *  rom)
inline

Set device rom code.

Parameters
[in]romcode.

Definition at line 303 of file OWI.h.

uint8_t* OWI::Device::rom ( )
inline

Get device rom code.

Returns
rom code.

Definition at line 333 of file OWI.h.

void OWI::Device::rom_P ( const uint8_t *  rom)
inline

Set device rom code.

Parameters
[in]romcode in program memory.

Definition at line 318 of file OWI.h.

Member Data Documentation

OWI& OWI::Device::m_owi
protected

One-Wire Bus Manager.

Definition at line 340 of file OWI.h.

uint8_t OWI::Device::m_rom[ROM_MAX]
protected

Device rom idenity code.

Definition at line 343 of file OWI.h.


The documentation for this class was generated from the following file: