B232OPSDA_SetDigitalOutput
Purpose: This function sets the states of the digital output lines.
Syntax: | C: | BOOL B232OPSDA_SetDigitalOutput (WORD |
|
| |
|
| hComDev, BYTE modAddr, WORD lines, WORD |
|
| states); |
| Pascal: | function B232OPSDA_ReadDigitalOutput |
|
| (hComDev : word; modAddr : byte; lines : |
|
| word; states : word); |
| BASIC: | FUNCTION B232OPSDAReadDigitalOutput |
|
| (BYVAL hComDev AS INTEGER, BYVAL modAddr |
|
| AS INTEGER, BYVAL lines AS INTEGER, BYVAL |
|
| states AS INTEGER) |
Remarks: | hComDev is the handle to a serial port where the | |
| module is connected. This is the value returned by | |
| initComPort. modAddr is the module address. This | |
| is always 30H (48 decimal) for 232OPSDA module. | |
| lines is a bit mask of the digital outputs to change. This | |
| will always be 01H (1 decimal) of the 232OPSDA, | |
| because it only has one digital output line. states is the | |
| new state of the digital outputs specified in lines. This | |
| can be either zero for OFF or | |
Returns: | FALSE (zero) if the function fails, otherwise it returns | |
| TRUE |
deinitComPort
Purpose: | Removes the serial communications port driver. | |
Syntax: | C: | void deinitComPort (WORD hComDev); |
|
| |
| Pascal: | procedure deinitComPort (hComDev : word); |
| BASIC: | sub deinitComPort (BYVAL hComDev AS |
|
| INTEGER); |
Remarks: | This function must be called after a serial | |
| communications port is installed with initComPort to | |
| remove the interrupt service routine that it installs. | |
Returns: | Nothing. |
|
See Also: | initComPort |
initComPort
Purpose: Installs a serial communications port driver.
Documentation Number 232OPSDA1397 Manual | 21 |
B&B Electronics
PH (815)