#include <sys/device.h>
#include <sys/timer.h>
Go to the source code of this file.
Functions | |
void | SpiDigitalInit (u_char *inputs, u_char *outputs) |
Initialize the digital I/O interface. | |
u_long | SpiDigitalGet (u_char num) |
Query digital inputs and outputs. | |
void | SpiDigitalSet (u_char num, u_long bits) |
Set digital outputs. |
|
Query digital inputs and outputs. If both inputs and outputs are installed, typically the inputs are represented by the most signigficant bits. SpiDigitalInit() must have been called by the application before calling this function.
|
|
Initialize the digital I/O interface. Automatically detects the number of digital inputs and outputs.
|
|
Set digital outputs. Although possible, it makes no sense to set digital inputs. SpiDigitalInit() must have been called by the application before calling this function.
|