libpruio  0.0.2
AM33xx-PRU driver for digital input / output and analog input
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
pruio.hp File Reference

Synchronize 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 PRUIO_BALL_AZ   109
 The number of CPU balls to handle. More...
 
#define PRUIO_BALL_OFFS   256
 The DRam offset to store ball configs. More...
 
#define PRUIO_GPIO_AZ   3
 The number of GPIO devices. More...
 
#define PRUIO_GPIO_OFFS   64
 The offset in DRam to store the GPIO info. More...
 
#define PRUIO_GPIO_DATA   24
 The size of the UDT for initial GPIO data. More...
 
#define PRUIO_GPIO_BLCK   32
 The size of the GpioSet UDT for GPIO handling. More...
 
#define PRUIO_ADC_OFFS   512
 The offset in DRam to store ADC parameters for config. More...
 
#define PRUIO_ADC_DATA   228
 The size of a full initial ADC data block. More...
 
#define PRUIO_ADC_EMPTY   12
 The size of an empty initial ADC data block. More...
 
#define PRUIO_ADC_BUFF   16
 The DRam offset for ADC samples. More...
 
#define PRUIO_TRG_PARA   4
 The DRam offset to store trigger parameters. More...
 
#define PRUIO_IRPT   25
 The interrupt number to use (25 => uio5). More...
 
#define PRUIO_MSG_INIT_OK   4294967295
 Message send by PruIo::PruIo. More...
 
#define PRUIO_MSG_EXIT_OK   4294967294
 Message send by PruIo::~PruIo. More...
 
#define PRUIO_MSG_ADC_ERRR   4294967293
 Message send by PruIo::config() on errors. More...
 
#define PRUIO_MSG_IO_OK   4294967292
 Message send by PruIo::config() in IO mode. More...
 
#define PRUIO_MSG_MM_WAIT   4294967291
 Message send by PruIo::config() in MM mode and after each call to PruIo::mm_start(). More...
 
#define PRUIO_MSG_MM_TRG1   4294967290
 Message send by PruIo::mm_start() while waiting for trigger 1 event. More...
 
#define PRUIO_MSG_MM_TRG2   4294967289
 Message send by PruIo::mm_start() while waiting for trigger 2 event. More...
 
#define PRUIO_MSG_MM_TRG3   4294967288
 Message send by PruIo::mm_start() while waiting for trigger 3 event. More...
 
#define PRUIO_MSG_MM_TRG4   4294967287
 Message send by PruIo::mm_start() while waiting for trigger 4 event. More...
 

Detailed Description

Synchronize parameters between FreeBASIC, C and PASM source code.

This file is used in FreeBASIC, C and PASM source code to synchonize the positions and the size of parameter blocks, exchanged in DRam. It also contains the message code numbers.

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.

Definition in file pruio.hp.

Macro Definition Documentation

#define PRUIO_BALL_AZ   109

The number of CPU balls to handle.

Definition at line 68 of file pruio.hp.

#define PRUIO_BALL_OFFS   256

The DRam offset to store ball configs.

Definition at line 69 of file pruio.hp.

#define PRUIO_GPIO_AZ   3

The number of GPIO devices.

Definition at line 71 of file pruio.hp.

#define PRUIO_GPIO_OFFS   64

The offset in DRam to store the GPIO info.

Definition at line 72 of file pruio.hp.

#define PRUIO_GPIO_DATA   24

The size of the UDT for initial GPIO data.

Definition at line 73 of file pruio.hp.

#define PRUIO_GPIO_BLCK   32

The size of the GpioSet UDT for GPIO handling.

Definition at line 74 of file pruio.hp.

#define PRUIO_ADC_OFFS   512

The offset in DRam to store ADC parameters for config.

Definition at line 76 of file pruio.hp.

#define PRUIO_ADC_DATA   228

The size of a full initial ADC data block.

Definition at line 77 of file pruio.hp.

#define PRUIO_ADC_EMPTY   12

The size of an empty initial ADC data block.

Definition at line 78 of file pruio.hp.

#define PRUIO_ADC_BUFF   16

The DRam offset for ADC samples.

Definition at line 79 of file pruio.hp.

#define PRUIO_TRG_PARA   4

The DRam offset to store trigger parameters.

Definition at line 80 of file pruio.hp.

#define PRUIO_IRPT   25

The interrupt number to use (25 => uio5).

Note that the interrupt channel and mask has to be adapted in file pruio.bi in case of any change here.

Definition at line 82 of file pruio.hp.

#define PRUIO_MSG_INIT_OK   4294967295

Message send by PruIo::PruIo.

Definition at line 84 of file pruio.hp.

#define PRUIO_MSG_EXIT_OK   4294967294

Message send by PruIo::~PruIo.

Definition at line 85 of file pruio.hp.

#define PRUIO_MSG_ADC_ERRR   4294967293

Message send by PruIo::config() on errors.

Definition at line 86 of file pruio.hp.

#define PRUIO_MSG_IO_OK   4294967292

Message send by PruIo::config() in IO mode.

Definition at line 87 of file pruio.hp.

#define PRUIO_MSG_MM_WAIT   4294967291

Message send by PruIo::config() in MM mode and after each call to PruIo::mm_start().

Definition at line 88 of file pruio.hp.

#define PRUIO_MSG_MM_TRG1   4294967290

Message send by PruIo::mm_start() while waiting for trigger 1 event.

Definition at line 89 of file pruio.hp.

#define PRUIO_MSG_MM_TRG2   4294967289

Message send by PruIo::mm_start() while waiting for trigger 2 event.

Definition at line 90 of file pruio.hp.

#define PRUIO_MSG_MM_TRG3   4294967288

Message send by PruIo::mm_start() while waiting for trigger 3 event.

Definition at line 91 of file pruio.hp.

#define PRUIO_MSG_MM_TRG4   4294967287

Message send by PruIo::mm_start() while waiting for trigger 4 event.

Definition at line 92 of file pruio.hp.