pintools

utility functions and procedures to manipulate pins (level, mode, etc...)

Author Sebastien Lelong, Copyright (C) 2009, all rights reserved.
Adapted-by
Compiler 2.4m

Description

This library provides a set of utility functions and procedures
to help users manipulating pins. For instance, you can dynamically access pins
using a specific mapping (RA0 is #0, RB1 is #2, etc...) and act on levels, mode,
directions, etc...



Using this library requires that array "pintools_map" is first defined. This array 
is composed by elements going by two:
 * the first element corresponds to the port letter ("A", "B", ...)
 * the second element corresponds to the pin number in this port (0, 1, 2, ...)
Pins are then accessed according to the index in this array (starting with 0)
Ex: const byte pintools_map [] = {"A","1", "B","1", "D","3}
This 6 elements (2x3) array specifies that:
 * pin #0 corresponds to pin_A1
 * pin #1 corresponds to pin_B1
 * pin #2 corresponds to pin_D3


Notes

this library hasn't been fully tested, this is still BETA...


Dependencies

No dependency found



Summary

Global variables/contants

Procedures

Functions


API details

Global variables/contants

Procedures

Functions


Related samples

Here are the list of samples which use this library:

18f455018f4550_pintools.jal