WPILibC++ 2027.0.0-alpha-2
Loading...
Searching...
No Matches
Ports.h
Go to the documentation of this file.
1// Copyright (c) FIRST and other WPILib contributors.
2// Open Source Software; you can modify and/or share it under the terms of
3// the WPILib BSD license file in the root directory of this project.
4
5#pragma once
6
7#include <stdint.h>
8
9/**
10 * @defgroup hal_ports Ports Functions
11 * @ingroup hal_capi
12 * @{
13 */
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
19/**
20 * Gets the number of can buses in the current system.
21 *
22 * @return the number of can buses
23 */
24int32_t HAL_GetNumCanBuses(void);
25
26/**
27 * Gets the number of analog inputs in the current system.
28 *
29 * @return the number of analog inputs
30 */
32
33/**
34 * Gets the number of counters in the current system.
35 *
36 * @return the number of counters
37 */
38int32_t HAL_GetNumCounters(void);
39
40/**
41 * Gets the number of digital channels in the current system.
42 *
43 * @return the number of digital channels
44 */
46
47/**
48 * Gets the number of PWM channels in the current system.
49 *
50 * @return the number of PWM channels
51 */
53
54/**
55 * Gets the number of digital IO PWM outputs in the current system.
56 *
57 * @return the number of digital IO PWM outputs
58 */
60
61/**
62 * Gets the number of quadrature encoders in the current system.
63 *
64 * @return the number of quadrature encoders
65 */
66int32_t HAL_GetNumEncoders(void);
67
68/**
69 * Gets the number of interrupts in the current system.
70 *
71 * @return the number of interrupts
72 */
74
75/**
76 * Gets the number of PCM modules in the current system.
77 *
78 * @return the number of PCM modules
79 */
81
82/**
83 * Gets the number of solenoid channels in the current system.
84 *
85 * @return the number of solenoid channels
86 */
88
89/**
90 * Gets the number of PDP modules in the current system.
91 *
92 * @return the number of PDP modules
93 */
95
96/**
97 * Gets the number of PDP channels in the current system.
98 *
99 * @return the number of PDP channels
100 */
102
103/**
104 * Gets the number of PDH modules in the current system.
105 *
106 * @return the number of PDH modules
107 */
109
110/**
111 * Gets the number of PDH channels in the current system.
112 *
113 * @return the number of PDH channels
114 */
116
117/**
118 * Gets the number of PH modules in the current system.
119 *
120 * @return the number of PH modules
121 */
123
124/**
125 * Gets the number of PH channels in the current system.
126 *
127 * @return the number of PH channels
128 */
130
131/**
132 * Gets the number of duty cycle inputs in the current system.
133 *
134 * @return the number of Duty Cycle inputs
135 */
137
138/**
139 * Gets the number of addressable LED generators in the current system.
140 *
141 * @return the number of Addressable LED generators
142 */
144#ifdef __cplusplus
145} // extern "C"
146#endif
147/** @} */
int32_t HAL_GetNumCTREPCMModules(void)
Gets the number of PCM modules in the current system.
int32_t HAL_GetNumDutyCycles(void)
Gets the number of duty cycle inputs in the current system.
int32_t HAL_GetNumAnalogInputs(void)
Gets the number of analog inputs in the current system.
int32_t HAL_GetNumCTREPDPChannels(void)
Gets the number of PDP channels in the current system.
int32_t HAL_GetNumCTRESolenoidChannels(void)
Gets the number of solenoid channels in the current system.
int32_t HAL_GetNumDigitalChannels(void)
Gets the number of digital channels in the current system.
int32_t HAL_GetNumPWMChannels(void)
Gets the number of PWM channels in the current system.
int32_t HAL_GetNumAddressableLEDs(void)
Gets the number of addressable LED generators in the current system.
int32_t HAL_GetNumCTREPDPModules(void)
Gets the number of PDP modules in the current system.
int32_t HAL_GetNumREVPHModules(void)
Gets the number of PH modules in the current system.
int32_t HAL_GetNumREVPDHChannels(void)
Gets the number of PDH channels in the current system.
int32_t HAL_GetNumCounters(void)
Gets the number of counters in the current system.
int32_t HAL_GetNumDigitalPWMOutputs(void)
Gets the number of digital IO PWM outputs in the current system.
int32_t HAL_GetNumCanBuses(void)
Gets the number of can buses in the current system.
int32_t HAL_GetNumREVPHChannels(void)
Gets the number of PH channels in the current system.
int32_t HAL_GetNumInterrupts(void)
Gets the number of interrupts in the current system.
int32_t HAL_GetNumEncoders(void)
Gets the number of quadrature encoders in the current system.
int32_t HAL_GetNumREVPDHModules(void)
Gets the number of PDH modules in the current system.