Aguijón Software Libraries  1.0
Documentation for the included Libraries
 All Files Functions Variables Typedefs Enumerations Enumerator Macros
inputs.h File Reference

Go to the source code of this file.

Functions

void DIPconfig (unsigned char cfg)
 
unsigned char readDIP (void)
 
unsigned char readSW (void)
 
unsigned char readOI (void)
 

Function Documentation

void DIPconfig ( unsigned char  cfg)

Function: DIPconfig

Preconditions: None.

Overview: Enables/Disables the DIP switch.

Arguments: Configuration macro, see "definitions.h".

Returns: None.

Definition at line 40 of file inputs.c.

unsigned char readDIP ( void  )

Function: readDIP

Preconditions: DIP switch enabled.

Overview: Returns the DIP switch value.

Arguments: None.

Returns: HEX value.

Definition at line 69 of file inputs.c.

unsigned char readOI ( void  )

Function: readOI

Preconditions: Key pressed.

Overview: Reads the Opto Isolated inputs state.

Arguments: None.

Returns: Number of the active input if any.

Definition at line 230 of file inputs.c.

unsigned char readSW ( void  )

Function: readSW

Preconditions: None.

Overview: Reads the keyboard state.

Arguments: None.

Returns: Number of the key that was pressed if any.

Definition at line 195 of file inputs.c.