Limit Switch Code

What is the code for initializing and returning the value of a limit switch in the WindRiver language?

Would the code be the same for a jumper switch (used for immediate feedback depending on the alliance)?

Thank you very much.

Switches are switches. Just make a DigitalIn object and use its Get() method.

thanks a lot