1-Wire API for .NET Version 4.00
Static Public Member Functions

Bit Class Reference

Utilities for bit operations on an array. More...

List of all members.

Static Public Member Functions

static void arrayWriteBit (int state, int index, int offset, byte[] buf)
 Write the bit state in a byte array.
static int arrayReadBit (int index, int offset, byte[] buf)
 Read a bit state in a byte array.

Detailed Description

Utilities for bit operations on an array.

Version:
0.00, 27 August 2000
Author:
DS

Member Function Documentation

static int arrayReadBit ( int  index,
int  offset,
byte[]  buf 
) [static]

Read a bit state in a byte array.

Parameters:
indexbit index into byte array
offsetbyte offset into byte array to start
bufbyte array to read from
Returns:
bit state 1 or 0
static void arrayWriteBit ( int  state,
int  index,
int  offset,
byte[]  buf 
) [static]

Write the bit state in a byte array.

Parameters:
statenew state of the bit 1, 0
indexbit index into byte array
offsetbyte offset into byte array to start
bufbyte array to manipulate

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