a0ccd623c6
git-svn-id: file:///srv/dev-disk-by-uuid-17e88007-4d0c-45e0-8757-cacfcc458630/repositories/svn/Diplomarbeit@110 9fe90eed-be63-e94b-8204-d34ff4c2ff93
136 lines
4.2 KiB
C
136 lines
4.2 KiB
C
/* ---------------------------------------------------------------------------
|
|
* testdio.h (c) 2008 Micro-key bv
|
|
* ---------------------------------------------------------------------------
|
|
* Micro-key bv
|
|
* Industrieweg 28, 9804 TG Noordhorn
|
|
* Postbus 92, 9800 AB Zuidhorn
|
|
* The Netherlands
|
|
* Tel: +31 594 503020
|
|
* Fax: +31 594 505825
|
|
* Email: support@microkey.nl
|
|
* Web: www.microkey.nl
|
|
* ---------------------------------------------------------------------------
|
|
* Description:
|
|
* Headerfile for digital Input/Output Test testdio.c
|
|
* ---------------------------------------------------------------------------
|
|
* Version(s): 0.1, Mar 06, 2008, MMi
|
|
* Creation.
|
|
* ---------------------------------------------------------------------------
|
|
*/
|
|
|
|
#ifndef TESTDIO_H_
|
|
#define TESTDIO_H_
|
|
|
|
/* ---------------------------------------------------------------------------
|
|
* System include files.
|
|
* ---------------------------------------------------------------------------
|
|
*/
|
|
#include "lpc23xx.h"
|
|
#include "types.h"
|
|
|
|
|
|
/* ---------------------------------------------------------------------------
|
|
* Application include files.
|
|
* ---------------------------------------------------------------------------
|
|
*/
|
|
|
|
/* ---------------------------------------------------------------------------
|
|
* Constant and macro definitions.
|
|
* ---------------------------------------------------------------------------
|
|
*/
|
|
|
|
/* ---------------------------------------------------------------------------
|
|
* Type definitions.
|
|
* ---------------------------------------------------------------------------
|
|
*/
|
|
|
|
/* ---------------------------------------------------------------------------
|
|
* Variable declarations.
|
|
* ---------------------------------------------------------------------------
|
|
*/
|
|
|
|
/* ---------------------------------------------------------------------------
|
|
* Function declarations.
|
|
* ---------------------------------------------------------------------------
|
|
*/
|
|
|
|
/* ---------------------------------------------------------------------------
|
|
* Function: testdioStart
|
|
*
|
|
* Main Function for Digital Tests
|
|
*
|
|
* Parameters: void
|
|
*
|
|
* Return: BOOLEAN - Test Result
|
|
* ---------------------------------------------------------------------------
|
|
*/
|
|
BOOLEAN testdioStart(void);
|
|
|
|
/* ---------------------------------------------------------------------------
|
|
* Function: doDIOLineTest
|
|
*
|
|
* Function to test LOW and HIGH Level on every single digital Input
|
|
*
|
|
* Parameters: void
|
|
*
|
|
* Return: BOOLEAN - Test Result
|
|
* ---------------------------------------------------------------------------
|
|
*/
|
|
BOOLEAN doDIOLineTest (void);
|
|
|
|
/* ---------------------------------------------------------------------------
|
|
* Function: CheckAllOtherDIOZero
|
|
*
|
|
* Function to test if all other Inputs but the chosen one is LOW
|
|
*
|
|
* Parameters: UINT32 DIONumber - currently tested Input
|
|
* BOOLEAN local - Check local or remote lines
|
|
*
|
|
* Return: BOOLEAN - Test Result
|
|
* ---------------------------------------------------------------------------
|
|
*/
|
|
BOOLEAN CheckAllOtherDIOZero (UINT32 DIONumber, BOOLEAN local);
|
|
|
|
|
|
/* ---------------------------------------------------------------------------
|
|
* Function: testremotedioStart
|
|
*
|
|
* Main function to remote Digital IO Test
|
|
*
|
|
* Parameters: void
|
|
*
|
|
* Return: BOOLEAN - Test Result
|
|
* ---------------------------------------------------------------------------
|
|
*/
|
|
BOOLEAN testremotedioStart (void);
|
|
|
|
|
|
/* ---------------------------------------------------------------------------
|
|
* Function: remotedioOutput
|
|
*
|
|
* Remote digital Output test
|
|
*
|
|
* Parameters: void
|
|
*
|
|
* Return: BOOLEAN - Test Result
|
|
* ---------------------------------------------------------------------------
|
|
*/
|
|
BOOLEAN remotedioOutput (void);
|
|
|
|
|
|
/* ---------------------------------------------------------------------------
|
|
* Function: remotedioInput
|
|
*
|
|
* Remote digital Input test
|
|
*
|
|
* Parameters: void
|
|
*
|
|
* Return: BOOLEAN - Test Result
|
|
* ---------------------------------------------------------------------------
|
|
*/
|
|
BOOLEAN remotedioInput (void);
|
|
|
|
|
|
|
|
#endif /*TESTDIO_H_*/
|