The following public function drives the output LEDs of a ppLED test module. This module is connected to the parallel port #1 of the system: Code Block |
---|
int ppLed(int val, int mask);
where:
val = word data containing updated data bits
bits in val should be set on or off as desired
mask = bit mask describing bit(s) to be modified
Examples:
ppLed(0x01, 0x01) set lsb on, all others unmodified
ppLed(0x00, 0x01) set lsb off, all others unmodified
ppLed(0x01, 0x03) set 2 lsbs to b00000001
all others unmodified
ppLed(0xff, 0x03) set 2 lsbs to b00000011
all others unmodified |
The following public function transforms an input string by substituting string segments of the form %XXX% with their system environment ‘YYY’ defined strings. If called by a RTSS process, no string substitution takes place. Code Block |
---|
char *tpriEnvStr (char *inString,
char *outString = NULL,
int outsize = 2048);
Transform inString to outString by substitution of system environment variables. |
Return is always a character pointer to the resulting string. If outString is not equal to NULL, the string is also copied into outString. If outString is specified, then the size of outString should be specified in the parameter outsize. The value of the outsize parameter cannot be greater than 2048 bytes. Code Block |
---|
public: int tpriCleanDir(
char *pDir,
timestamp age,
char *pPattern /* = NULL */
) |
Parameters: pDir Pointer to directory name to search. age Maximum age of file to leave in directory. pPattern String pattern for file search; only files whose name matches this pattern will be deleted. A NULL pointer is equivalent to "*", matching all files. Return Value: Zero to indicate success.
|