Author | Sebastien Lelong, Copyright (C) 2009, all rights reserved. |
Adapted-by | |
Compiler | 2.4m |
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
this library hasn't been fully tested, this is still BETA...
No dependency found
pintools_set_direction(byte in pinnum, bit in direction)
pintools_level'put(byte in pinnum, bit in level)
pintools_direction'put(byte in pinnum, bit in direction)
pintools_set_level(byte in pinnum, bit in level)
pintools_set_direction(byte in pinnum, bit in direction)
Access pin by number and set its direction (low/high)
pintools_level'put(byte in pinnum, bit in level)
No documentation found
pintools_direction'put(byte in pinnum, bit in direction)
No documentation found
pintools_set_level(byte in pinnum, bit in level)
No documentation found
pintools_direction'get(byte in pinnum) return bit
No documentation found
pintools_level'get(byte in pinnum) return bit
No documentation found
18f4550 | 18f4550_pintools.jal |