FreeBASIC header file for libpruio. More...
#include "pruio_globals.bi"
#include "pruio_adc.bi"
#include "pruio_gpio.bi"
#include "pruio_pwmss.bi"
#include "pruio_timer.bi"
#include "pruio_intc.bi"
Go to the source code of this file.
Classes | |
class | BallSet |
Structure for Control Module, containing pad configurations. More... | |
class | PruIo |
Main structure, binding all components together. More... | |
Macros | |
#define | BallCheck(_T_, _R_) /* IF Ball > PRUIO_AZ_BALL THEN .Errr = @"unknown" _T_ " pin number" : RETURN _R_ */ |
Macro to check a CPU ball number (0 to 109 is valid range). | |
Typedefs | |
typedef FUNCTION_CDECL_AS_ZSTRING_PTR | setPinFunc(BYVAL_AS_Pruio__PTR Top, BYVAL_AS_UInt8 Ball, BYVAL_AS_UInt8 Mo) |
Alias for pinmuxing signature. | |
Enumerations | |
enum | BBTypes { BBB2x46 = 0 , PBB2x36 = 1 , BB_Blue = 2 , BBB2x46 = 0 , PBB2x36 = 1 , BB_Blue = 2 } |
Enumerators for board types. More... | |
enum | AdcStepMask { AIN0 = &b000000010 , AIN1 = &b000000100 , AIN2 = &b000001000 , AIN3 = &b000010000 , AIN4 = &b000100000 , AIN5 = &b001000000 , AIN6 = &b010000000 , AIN7 = &b100000000 } |
Mask for ADC step enabling. More... | |
enum | ActivateDevice { PRUIO_ACT_PRU1 = &b0000000000001 , PRUIO_ACT_ADC = &b0000000000010 , PRUIO_ACT_GPIO0 = &b0000000000100 , PRUIO_ACT_GPIO1 = &b0000000001000 , PRUIO_ACT_GPIO2 = &b0000000010000 , PRUIO_ACT_GPIO3 = &b0000000100000 , PRUIO_ACT_PWM0 = &b0000001000000 , PRUIO_ACT_PWM1 = &b0000010000000 , PRUIO_ACT_PWM2 = &b0000100000000 , PRUIO_ACT_TIM4 = &b0001000000000 , PRUIO_ACT_TIM5 = &b0010000000000 , PRUIO_ACT_TIM6 = &b0100000000000 , PRUIO_ACT_TIM7 = &b1000000000000 , PRUIO_DEF_ACTIVE = &b1111111111111 , PRUIO_ACT_FREMUX = &b1000000000000000 } |
Mask for PRUSS number and divice enabling. More... | |
FreeBASIC header file for libpruio.
Header file for including libpruio to FreeBASIC programs. It binds the different components together and provides all declarations.
Definition in file pruio.bi.
enum ActivateDevice |
Mask for PRUSS number and divice enabling.
This enumerators are used in the constructor PruIo::PruIo() to enable single subsystems. By default all subsystems are enabled. If a device is not enabled, libpruio wont wake it up nor allocate memory to control it. It just reads the version information to see if the subsystem is in operation.
An enabled subsystem will get activated in the constructor PruIo::PruIo() and libpruio will set its configuration. When done, the destructor PruIo::~PruIo() either disables it (when previously disabled) or resets the initial configuration.
The first enumerator PRUIO_ACT_PRU1 is used to specify the PRU subsystem to execute libpruio. By default the bit is set and libpruio runs on PRU-1. See PruIo::PruIo() for further information.
enum AdcStepMask |
Mask for ADC step enabling.
This enumerators are for use in function PruIo::config() to enable single steps for the ADC sampling sequence. By default steps 1 to 8 are configured to measure AIN 0 to 7, using the values of Averaging, OpenDelay and SampleDelay passed as parameters to the constructor PruIo::PruIo().
Example:
Io->config(AIN0 + AIN3 + AIN4, ...)
enum BBTypes |
Enumerators for board types.