libpruw1  0.4
One wire (W1) driver for Beaglebone hardware based on libpruio
pruw1.hp File Reference

This file synchronizes parameters between FreeBASIC, C and PASM source code. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define __PRUW1_MONITOR__
 
#define __SRAM_BASE__
 
#define CMD_RESET   16
 The command to initiate a bus reset.
 
#define CMD_TRIP   32
 The command to initiate a tripple.
 
#define CMD_RECV   48
 The command to initiate a bus receive operation.
 
#define CMD_SEND   64
 The command to initiate a bus send operation.
 
#define LOG_BASE   80
 The PRU pointer to the first byte of logs in RAM memory (4 byte access).
 
#define LOG_MAX   3071
 The maximum offset in RAM memory (4 byte access: SRam->3071/DRam->2047).
 

Detailed Description

This file synchronizes parameters between FreeBASIC, C and PASM source code.

This file is used in FreeBASIC, C and PASM source code to synchonize the PRU message code numbers and the monitoring switch.

Since all the syntaxes have different markers for comments, we cannot use 'normal' comments here. We've to enclose the comment text in preprocessor blocks that never get parsed.

Note
We cannot use hexadecimal numbers here since syntaxes are different. That's why all numbers are decimal.
Since
0.0

Definition in file pruw1.hp.