26 typedef unsigned long long int UInt64;
168 #define pruw1_scanBus(W1) pruw1_scanBus(W1, 0xF0)
LineModus
Masks for line idle configuration.
UInt8 pruw1_resetBus(pruw1 *W1)
Send the reset signal to the bus.
UInt8 pruw1_getIn(pruw1 *W1)
Get the state of the data line.
short Int16
16 bit signed integer data type.
Int32 pruw1_getSlotMax(pruw1 *W1)
Property to get size of array PruW1::Slots from C.
pruw1 * pruw1_new(pruIo *P, UInt8 B, UInt8 M)
Wrapper function for the constructor PruW1::PruW1().
void pruw1_eraseSlots(pruw1 *W1)
Function to empty the array PruW1::Slots from C.
unsigned int UInt32
32 bit unsigned integer data type.
UInt8 pruw1_checkPara(pruw1 *W1)
Check line for parasite powered device.
struct pruw1 pruw1
forward declaration
Int16 T_FAM10(UInt8 *Rom)
Compute the temperature for a series 10 sensor (old format).
unsigned char UInt8
8 bit unsigned integer data type.
void pruw1_sendByte(pruw1 *W1, UInt8 V)
Send a byte (eight bits) to the bus.
Int16 T_FAM20(UInt8 *Rom)
Compute the temperature for a series 20 sensor (new format).
unsigned long long int UInt64
64 bit unsigned integer data type.
UInt8 pruw1_recvBlock(pruw1 *W1, UInt8 N)
Receive a block of data (usually 9 bytes).
char * pruw1_scanBus(pruw1 *W1, UInt8 SearchType)
Function to scan the bus for all devices.
UInt8 pruw1_calcCrc(pruw1 *W1, UInt8 N)
Compute the CRC checksum for data package.
@ PRUW1_PARPOW
Set line output high during idle.
@ PRUW1_PULLUP
Activate the internal pull up resistor.
int Int32
32 bit signed integer data type.
UInt8 pruw1_recvByte(pruw1 *W1)
Receive a single byte (8 bit).
UInt64 pruw1_getId(pruw1 *W1, UInt32 N)
Function to get ID from array PruW1::Slots from C.
void pruw1_destroy(pruw1 *W1)
Wrapper function for the destructor PruW1::~PruW1().
void pruw1_sendRom(pruw1 *W1, UInt64 V)
Send a ROM ID to the bus (to select a device).
The PruW1 C wrapper structure.
char * Errr
The variable to report error messages.
UInt32 * Raw
A pointer to the libpruio raw GPIO data.
UInt32 Mask
The mask to select the pin in use.
UInt32 * DRam
A pointer to the libpruw1 DRam.
UInt8 crc8_table[255+1]
A pre-computed table for fast CRC checksum computation.
UInt32 PruIRam
The PRU instruction ram to use.
UInt32 PruNo
The number of the PRU to use.
UInt32 PruLMod
The line modus to use (parasite power).
UInt8 Slots[32]
Meta-data for FB array to store the device IDs.