Synchronize parameters between FreeBASIC, C and PASM source code. More...
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... | |
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.
Definition in file pruio.hp.
#define PRUIO_BALL_AZ 109 |
#define PRUIO_BALL_OFFS 256 |
#define PRUIO_GPIO_OFFS 64 |
#define PRUIO_GPIO_DATA 24 |
#define PRUIO_GPIO_BLCK 32 |
#define PRUIO_ADC_OFFS 512 |
#define PRUIO_ADC_DATA 228 |
#define PRUIO_ADC_EMPTY 12 |
#define PRUIO_TRG_PARA 4 |
#define PRUIO_IRPT 25 |
#define PRUIO_MSG_INIT_OK 4294967295 |
Message send by PruIo::PruIo.
#define PRUIO_MSG_EXIT_OK 4294967294 |
#define PRUIO_MSG_ADC_ERRR 4294967293 |
Message send by PruIo::config() on errors.
#define PRUIO_MSG_IO_OK 4294967292 |
Message send by PruIo::config() in IO mode.
#define PRUIO_MSG_MM_WAIT 4294967291 |
Message send by PruIo::config() in MM mode and after each call to PruIo::mm_start().
#define PRUIO_MSG_MM_TRG1 4294967290 |
Message send by PruIo::mm_start() while waiting for trigger 1 event.
#define PRUIO_MSG_MM_TRG2 4294967289 |
Message send by PruIo::mm_start() while waiting for trigger 2 event.
#define PRUIO_MSG_MM_TRG3 4294967288 |
Message send by PruIo::mm_start() while waiting for trigger 3 event.
#define PRUIO_MSG_MM_TRG4 4294967287 |
Message send by PruIo::mm_start() while waiting for trigger 4 event.