-
Notifications
You must be signed in to change notification settings - Fork 1
IO Module
Marco edited this page Jul 7, 2016
·
1 revision
Creates a temporary variable which is to be passed to all io__*
functions.
This variable includes all necessary registers (DDR
, PORT
, PIN
) to control the _pin
on port _port
.
Creates a temporary bus variable which can be passed to all io__*
functions as well.
_num
is the width of the bus. Take care since since only a value between 1
and 8
(maximum) is possible at the time.
The most left bit is treated as the LSB
whereas the most right is treated as the MSB
Reads from the given I/O.
Writes to the given I/O.
Configures io
to be either an input
or output
.
Use the IO__INPUT
respectively IO__OUTPUT
constants for setting the mode.