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

The main source code of the library. More...

#include "pruio.bi"
#include "pruio_pins.bi"
#include "pruio_init.bi"
#include "pruio_run.bi"
#include "pruio_exit.bi"
Include dependency graph for pruio.bas:

Go to the source code of this file.

Macros

#define __PRUIO_COMPILING__
 
#define ArrayBytes(_A_)   /* (UBOUND(_A_) + 1) * SIZEOF(_A_) */
 Driver header file. More...
 
#define BallCheck(_T_, _R_)   /* IF Ball > PRUIO_BALL_AZ THEN Errr = @"unknown" _T_ " pin number" : RETURN _R_ */
 macro to check a CPU ball number (0 to 109 is valid range) More...
 

Functions

FUNCTION_CDECL_ALIAS_AS_ANY_PTR memcpy (BYVAL_AS_ANY_PTR, BYVAL_AS_ANY_PTR, BYVAL_AS_size_t)
 Declaration for C runtime function memcpy(). More...
 

Detailed Description

The main source code of the library.

This is the main source code of the library. You may compile it by fbc -dylib pruio.bas to get a small library file (small, because the C wrapper functions are not included as in the original version).

Definition in file pruio.bas.

Macro Definition Documentation

#define __PRUIO_COMPILING__

Definition at line 103 of file pruio.bas.

#define ArrayBytes (   _A_)    /* (UBOUND(_A_) + 1) * SIZEOF(_A_) */

Driver header file.

Header file with convenience macros. Header file with PRU initialisation instructions. Header file with PRU driver instructions. Header file with PRU destructor instructions. Macro to calculate the total size of an array in bytes.

Definition at line 117 of file pruio.bas.

#define BallCheck (   _T_,
  _R_ 
)    /* IF Ball > PRUIO_BALL_AZ THEN Errr = @"unknown" _T_ " pin number" : RETURN _R_ */

macro to check a CPU ball number (0 to 109 is valid range)

Definition at line 525 of file pruio.bas.

Function Documentation

FUNCTION_CDECL_ALIAS_AS_ANY_PTR memcpy ( BYVAL_AS_ANY_PTR  ,
BYVAL_AS_ANY_PTR  ,
BYVAL_AS_size_t   
)

Declaration for C runtime function memcpy().