owdci

package
v0.13.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package owdci provides implementation of onewire.DCI interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type USART

type USART usart.Driver

USART wraps an usart.Driver to implements the onewire.DCI.

func SetupUSART

func SetupUSART(d *usart.Driver) *USART

SetupUSART configures d to be used as onewire.DCI.

func (*USART) ReadBit

func (dci *USART) ReadBit() (int, error)

func (*USART) ReadByte

func (dci *USART) ReadByte() (byte, error)

func (*USART) Reset

func (dci *USART) Reset() error

func (*USART) WriteBit

func (dci *USART) WriteBit(bit int) error

func (*USART) WriteByte

func (dci *USART) WriteByte(b byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL