| int ser_sr24_set_portmode( | |
| ser_sr24 handle, | //serial board handle |
| int port, | //serial board port to configure |
| int property, | //property of the port to configure |
| int mode | //value to set the property to |
| ); |
| handle: |
|
| port: |
|
| property: |
|
| mode: |
|
/* Board has already been opened, and the handle has been stored into 'handle' */ ser_sr24_set_portmode(handle, 2, SR24_BUFFER, SR24_BUFFER_DISABLED);
| object.SetPortMode( | |
| ByVal port As Long | 'serial board port to configure |
| ByVal property As PortProperty | 'property of the port to configure |
| ByVal mode As PortMode | 'value to set the property to |
| ) As Long |
result = object.SetPortMode(3, SR24_DIRECTION, SR24_DIRECTION_OUTPUT) 'configure Port 3 as an output port
| Back to Contents | Winford Engineering (2000) |