edited bold-words in dictionary.odt
updated code files git-svn-id: file:///srv/dev-disk-by-uuid-17e88007-4d0c-45e0-8757-cacfcc458630/repositories/svn/Diplomarbeit@132 9fe90eed-be63-e94b-8204-d34ff4c2ff93
This commit is contained in:
@@ -64,20 +64,123 @@ xSemaphoreHandle remoteAnalogueSemaphore;
|
||||
* ---------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
/* ---------------------------------------------------------------------------
|
||||
* Function: remoteAioInit
|
||||
*
|
||||
* Initialisation of the remote analogue driver; takes the analogue semaphore
|
||||
*
|
||||
* Parameter: void
|
||||
*
|
||||
* Return: void
|
||||
* ---------------------------------------------------------------------------
|
||||
*/
|
||||
void remoteAioInit (void);
|
||||
|
||||
|
||||
/* ---------------------------------------------------------------------------
|
||||
* Function: remoteAioWrite
|
||||
*
|
||||
* Writes to one remote analogue output
|
||||
*
|
||||
* Parameter: UINT8 device - Number of the device to write one
|
||||
UINT8 channel - Channelnumber that should be affected
|
||||
INT32 value - Value that should be written
|
||||
*
|
||||
* Return: RESULT - Write result
|
||||
* ---------------------------------------------------------------------------
|
||||
*/
|
||||
RESULT remoteAioWrite (UINT8 device, UINT8 channel, INT32 value);
|
||||
|
||||
/* ---------------------------------------------------------------------------
|
||||
* Function: remoteAioWriteAll
|
||||
*
|
||||
* Writes to all remote analogue outputs
|
||||
*
|
||||
* Parameter: UINT8 device - Number of the device to write on
|
||||
t_boardtype_analogue board - type of board (MB or EB)
|
||||
INT32 value - Value that should be written
|
||||
*
|
||||
* Return: RESULT - Write result
|
||||
* ---------------------------------------------------------------------------
|
||||
*/
|
||||
RESULT remoteAioWriteAll (UINT8 device, t_boardtype_analogue board, BOOLEAN value);
|
||||
|
||||
|
||||
/* ---------------------------------------------------------------------------
|
||||
* Function: remoteAioread
|
||||
*
|
||||
* Reads on one remote analogue outputs
|
||||
*
|
||||
* Parameter: UINT8 device - Number of the device to write on
|
||||
UINT8 channel - Number of affected channel
|
||||
*
|
||||
* Return: UINT32 - Read value
|
||||
* ---------------------------------------------------------------------------
|
||||
*/
|
||||
UINT32 remoteAioRead (UINT8 device, UINT8 channel);
|
||||
|
||||
|
||||
/* ---------------------------------------------------------------------------
|
||||
* Function: remoteAioread
|
||||
*
|
||||
* Reads on one remote analogue outputs
|
||||
*
|
||||
* Parameter: UINT8 device - Number of the device to write on
|
||||
t_boardtype_analogue board - type of board (MB or EB)
|
||||
*
|
||||
* Return: void
|
||||
* ---------------------------------------------------------------------------
|
||||
*/
|
||||
void remoteAioReadAll (UINT8 device, t_boardtype_analogue board);
|
||||
|
||||
|
||||
|
||||
/* ---------------------------------------------------------------------------
|
||||
* Function: remoteAnalogueSemaphoreRelease
|
||||
*
|
||||
* Is called as a result from the remote device to release the analogue
|
||||
* Semaphore. This call is the last statement within the remote procedure.
|
||||
* It assures that the complete function is executed before the local
|
||||
* software resumes working.
|
||||
*
|
||||
* Parameters: UINT8 requestNr - Number of the momentary request
|
||||
* UINT8 nrOfResults - Indicates how many values are returned
|
||||
* UINT32 *results - Result-Array of "NrOfResults"-size
|
||||
*
|
||||
* Return: void
|
||||
* ---------------------------------------------------------------------------
|
||||
*/
|
||||
void remoteAnalogueSemaphoreRelease (UINT8 requestNr, UINT8 nrOfResults, UINT32 *results);
|
||||
|
||||
|
||||
/* ---------------------------------------------------------------------------
|
||||
* Function: analogueReadResult
|
||||
*
|
||||
* Is called as result function; receives the remotely read value
|
||||
*
|
||||
* Parameters: UINT8 requestNr - Number of the momentary request
|
||||
* UINT8 nrOfResults - Indicates how many values are returned
|
||||
* UINT32 *results - Result-Array of "NrOfResults"-size
|
||||
*
|
||||
* Return: void
|
||||
* ---------------------------------------------------------------------------
|
||||
*/
|
||||
void analogueReadResult (UINT8 requestNr, UINT8 nrOfResults, UINT32 *results);
|
||||
|
||||
|
||||
/* ---------------------------------------------------------------------------
|
||||
* Function: analogueReadAllResult
|
||||
*
|
||||
* Is called as result function; receives the remotely read values
|
||||
*
|
||||
* Parameters: UINT8 requestNr - Number of the momentary request
|
||||
* UINT8 nrOfResults - Indicates how many values are returned
|
||||
* UINT32 *results - Result-Array of "NrOfResults"-size
|
||||
*
|
||||
* Return: void
|
||||
* ---------------------------------------------------------------------------
|
||||
*/
|
||||
void analogueReadAllResult (UINT8 requestNr, UINT8 nrOfResults, UINT32 *results);
|
||||
|
||||
|
||||
|
||||
@@ -85,6 +85,7 @@ BOOLEAN makeHandshake (void)
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
UINT8 returnRemoteCalibrationStatus (INT32 correctionType)
|
||||
{
|
||||
xSemaphoreTake(generalSemaphore, 0);
|
||||
|
||||
@@ -16,13 +16,14 @@
|
||||
* Creation.
|
||||
* ---------------------------------------------------------------------------
|
||||
*/
|
||||
#include "lpc23xx.h"
|
||||
#include "types.h"
|
||||
#ifndef REMOTE_MISC_H_
|
||||
#define REMOTE_MISC_H_
|
||||
/* ---------------------------------------------------------------------------
|
||||
* System include files.
|
||||
* ---------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
#include "lpc23xx.h"
|
||||
#include "types.h"
|
||||
/* ---------------------------------------------------------------------------
|
||||
* Application include files.
|
||||
* ---------------------------------------------------------------------------
|
||||
@@ -67,7 +68,5 @@ UINT8 showRemoteCalibrationStatus (INT32 correctionType);
|
||||
|
||||
void digitalReadResult (UINT8 requestNr, UINT8 nrOfResults, UINT32 *results);
|
||||
|
||||
#ifndef REMOTE_MISC_H_
|
||||
#define REMOTE_MISC_H_
|
||||
|
||||
#endif /*REMOTE_MISC_H_*/
|
||||
|
||||
@@ -58,13 +58,64 @@ xSemaphoreHandle remoteRelaySemaphore;
|
||||
* Function declarations.
|
||||
* ---------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/* ---------------------------------------------------------------------------
|
||||
* Function: remoteRelayInit
|
||||
*
|
||||
* Initialisation of the relay remote driver, creates and takes relay
|
||||
* Semaphore.
|
||||
*
|
||||
* Parameters: void
|
||||
*
|
||||
* Return: void
|
||||
* ---------------------------------------------------------------------------
|
||||
*/
|
||||
void remoteRelayInit(void);
|
||||
|
||||
|
||||
/* ---------------------------------------------------------------------------
|
||||
* Function: remoteRelaySet
|
||||
*
|
||||
* Sets or cleans a relay output on the remote device
|
||||
*
|
||||
* Parameters: UINT8 device - Number of the remote device
|
||||
* UINT8 channel - Number of the effected remote channel
|
||||
* BOOLEAN value - Value to be written
|
||||
*
|
||||
* Return: RESULT - Indicates the status of the write action
|
||||
* ---------------------------------------------------------------------------
|
||||
*/
|
||||
RESULT remoteRelaySet (UINT8 device, UINT8 channel, BOOLEAN value);
|
||||
|
||||
|
||||
/* ---------------------------------------------------------------------------
|
||||
* Function: remoteRelayRead
|
||||
*
|
||||
* reads from one remote relay input. If the result fails, the previous
|
||||
* generated result will be returned.
|
||||
*
|
||||
* Parameters: UINT8 device - Number of the remote device
|
||||
* UINT8 channel - Number of the effected remote channel
|
||||
*
|
||||
* Return: BOOLEAN - The read result
|
||||
* ---------------------------------------------------------------------------
|
||||
*/
|
||||
BOOLEAN remoteRelayRead (UINT8 device, UINT8 channel);
|
||||
|
||||
|
||||
/* ---------------------------------------------------------------------------
|
||||
* Function: remoteRelaySetAll
|
||||
*
|
||||
* Sets or cleans all relay outputs on the remote device
|
||||
*
|
||||
* Parameters: UINT8 device - Number of the remote device
|
||||
* UINT8 channel - Number of the effected remote channel
|
||||
* BOOLEAN value - Value to be written
|
||||
*
|
||||
* Return: RESULT - Indicates the status of the write action
|
||||
* ---------------------------------------------------------------------------
|
||||
*/
|
||||
RESULT remoteRelaySetAll (UINT8 device, t_boardtype_relay board, BOOLEAN value);
|
||||
|
||||
void remoteRelaySemaphoreRelease (UINT8 requestNr, UINT8 nrOfResults, UINT32 *results);
|
||||
|
||||
@@ -53,16 +53,81 @@
|
||||
* ---------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
/* ---------------------------------------------------------------------------
|
||||
* Function: remoteAnalogueLinetestMBExecute
|
||||
*
|
||||
* Main function to the analogue connectivity test of the main board
|
||||
*
|
||||
* Parameter: void
|
||||
*
|
||||
* Return: BOOLEAN - test result
|
||||
* ---------------------------------------------------------------------------
|
||||
*/
|
||||
BOOLEAN remoteAnalogueLinetestMBExecute (void);
|
||||
|
||||
|
||||
/* ---------------------------------------------------------------------------
|
||||
* Function: remoteAnalogueLinetestEBExecute
|
||||
*
|
||||
* Main function to the analogue connectivity test of the extension board
|
||||
*
|
||||
* Parameter: void
|
||||
*
|
||||
* Return: BOOLEAN - test result
|
||||
* ---------------------------------------------------------------------------
|
||||
*/
|
||||
BOOLEAN remoteAnalogueLinetestEBExecute (void);
|
||||
|
||||
|
||||
/* ---------------------------------------------------------------------------
|
||||
* Function: remoteAnalogueOutputTest_MB
|
||||
*
|
||||
* Analogue output test for test_item main board
|
||||
*
|
||||
* Parameter: void
|
||||
*
|
||||
* Return: BOOLEAN - test result
|
||||
* ---------------------------------------------------------------------------
|
||||
*/
|
||||
BOOLEAN remoteAnalogueOutputTest_MB (void);
|
||||
|
||||
|
||||
/* ---------------------------------------------------------------------------
|
||||
* Function: remoteAnalogueInputTest_MB
|
||||
*
|
||||
* Analogue input test for test_item main board
|
||||
*
|
||||
* Parameter: void
|
||||
*
|
||||
* Return: BOOLEAN - test result
|
||||
* ---------------------------------------------------------------------------
|
||||
*/
|
||||
BOOLEAN remoteAnalogueInputTest_MB (void);
|
||||
|
||||
|
||||
/* ---------------------------------------------------------------------------
|
||||
* Function: remoteAnalogueOutputTest_EB
|
||||
*
|
||||
* Analogue output test for test_item extension board
|
||||
*
|
||||
* Parameter: void
|
||||
*
|
||||
* Return: BOOLEAN - test result
|
||||
* ---------------------------------------------------------------------------
|
||||
*/
|
||||
BOOLEAN remoteAnalogueOutputTest_EB (void);
|
||||
|
||||
|
||||
/* ---------------------------------------------------------------------------
|
||||
* Function: remoteAnalogueInputTest_EB
|
||||
*
|
||||
* Analogue input test for test_item extension board
|
||||
*
|
||||
* Parameter: void
|
||||
*
|
||||
* Return: BOOLEAN - test result
|
||||
* ---------------------------------------------------------------------------
|
||||
*/
|
||||
BOOLEAN remoteAnalogueInputTest_EB (void);
|
||||
|
||||
|
||||
|
||||
@@ -50,6 +50,16 @@
|
||||
* ---------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
/* ---------------------------------------------------------------------------
|
||||
* Function: remoteLEDTestMBexecute
|
||||
*
|
||||
* LED test for all LEDS available on CPU and main board
|
||||
*
|
||||
* Parameter: void
|
||||
*
|
||||
* Return: BOOLEAN - test result
|
||||
* ---------------------------------------------------------------------------
|
||||
*/
|
||||
BOOLEAN remoteLEDTestMBexecute (void);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user