Class PortsJNI


public class PortsJNI extends JNIWrapper
Ports HAL JNI functions.
See Also:
  • "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"
    • getNumAnalogInputs

      public static int getNumAnalogInputs()
      Gets the number of analog inputs in the current system.
      Returns:
      the number of analog inputs
      See Also:
      • "HAL_GetNumAnalogInputs"
    • getNumCounters

      public static int getNumCounters()
      Gets the number of counters in the current system.
      Returns:
      the number of counters
      See Also:
      • "HAL_GetNumCounters"
    • getNumDigitalChannels

      public static int getNumDigitalChannels()
      Gets the number of digital channels in the current system.
      Returns:
      the number of digital channels
      See Also:
      • "HAL_GetNumDigitalChannels"
    • getNumPWMChannels

      public static int getNumPWMChannels()
      Gets the number of PWM channels in the current system.
      Returns:
      the number of PWM channels
      See Also:
      • "HAL_GetNumPWMChannels"
    • getNumDigitalPWMOutputs

      public static int getNumDigitalPWMOutputs()
      Gets the number of digital IO PWM outputs in the current system.
      Returns:
      the number of digital IO PWM outputs
      See Also:
      • "HAL_GetNumDigitalPWMOutputs"
    • getNumEncoders

      public static int getNumEncoders()
      Gets the number of quadrature encoders in the current system.
      Returns:
      the number of quadrature encoders
      See Also:
      • "HAL_GetNumEncoders"
    • getNumInterrupts

      public static int getNumInterrupts()
      Gets the number of interrupts in the current system.
      Returns:
      the number of interrupts
      See Also:
      • "HAL_GetNumInterrupts"
    • 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"