Class PortsJNI

java.lang.Object
org.wpilib.hardware.hal.JNIWrapper
org.wpilib.hardware.hal.PortsJNI

public class PortsJNI extends JNIWrapper
Ports HAL JNI functions.
See Also:
  • "wpi/hal/Ports.h"
  • Method Details

    • getNumCanBuses

      public static int getNumCanBuses()
      Gets the number of can buses in the current system.
      Returns:
      the number of can buses
      See Also:
      • "HAL_GetNumCanBuses"
    • getNumSmartIo

      public static int getNumSmartIo()
      Gets the number of SmartIo ports in the current system.
      Returns:
      the number of SmartIo
      See Also:
      • "HAL_GetNumSmartIo"
    • getNumCTREPCMModules

      public static int getNumCTREPCMModules()
      Gets the number of PCM modules in the current system.
      Returns:
      the number of PCM modules
      See Also:
      • "HAL_GetNumCTREPCMModules"
    • getNumCTRESolenoidChannels

      public static int getNumCTRESolenoidChannels()
      Gets the number of solenoid channels in the current system.
      Returns:
      the number of solenoid channels
      See Also:
      • "HAL_GetNumCTRESolenoidChannels"
    • getNumCTREPDPModules

      public static int getNumCTREPDPModules()
      Gets the number of PDP modules in the current system.
      Returns:
      the number of PDP modules
      See Also:
      • "HAL_GetNumCTREPDPModules"
    • getNumCTREPDPChannels

      public static int getNumCTREPDPChannels()
      Gets the number of PDP channels in the current system.
      Returns:
      the number of PDP channels
      See Also:
      • "HAL_GetNumCTREPDPChannels"
    • getNumREVPDHModules

      public static int getNumREVPDHModules()
      Gets the number of PDH modules in the current system.
      Returns:
      the number of PDH modules
      See Also:
      • "HAL_GetNumREVPDHModules"
    • getNumREVPDHChannels

      public static int getNumREVPDHChannels()
      Gets the number of PDH channels in the current system.
      Returns:
      the number of PDH channels
      See Also:
      • "HAL_GetNumREVPDHChannels"
    • getNumREVPHModules

      public static int getNumREVPHModules()
      Gets the number of PH modules in the current system.
      Returns:
      the number of PH modules
      See Also:
      • "HAL_GetNumREVPHModules"
    • getNumREVPHChannels

      public static int getNumREVPHChannels()
      Gets the number of PH channels in the current system.
      Returns:
      the number of PH channels
      See Also:
      • "HAL_GetNumREVPHChannels"