CAU

- The Model Railway
- - Software
- - - libRailControl
- - - - Constants/Functions
- - - - - Constants
- - - - - Initialisation
- - - - - Block Sections
- - - - - Points
- - - - - Signals
- - - - - Relay
- - - - - Velocity Meters
- - - - - Station Lighting
- - - - - Handling

Point Control Functions

enginecarcar
int set_point(int POINT, int POSITION)

The function set_point() sets the point POINT to the value POSITION. Points may be specified by their labels which the library defines as symbolic constants. Legal position values are the symbolic constants STRAIGHT and BRANCH for the respective point positions.
On successful completion the value SUCCESS is returned, otherwise the value FAILURE.

int get_point(int POINT);

The function get_point() returns the position currently set by the last call to the function set_point() for the specified point POINT.
On successful completion either STRAIGHT or BRANCH is returned, otherwise the value FAILURE.


Clemens Grelck
generated on: Mon May 31 10:20:18 MET DST 1999