WPILibC++ 2024.3.2
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 analog accumulators in the current system.
21 *
22 * @return the number of analog accumulators
23 */
25
26/**
27 * Gets the number of analog triggers in the current system.
28 *
29 * @return the number of analog triggers
30 */
32
33/**
34 * Gets the number of analog inputs in the current system.
35 *
36 * @return the number of analog inputs
37 */
39
40/**
41 * Gets the number of analog outputs in the current system.
42 *
43 * @return the number of analog outputs
44 */
46
47/**
48 * Gets the number of counters in the current system.
49 *
50 * @return the number of counters
51 */
52int32_t HAL_GetNumCounters(void);
53
54/**
55 * Gets the number of digital headers in the current system.
56 *
57 * @return the number of digital headers
58 */
60
61/**
62 * Gets the number of PWM headers in the current system.
63 *
64 * @return the number of PWM headers
65 */
67
68/**
69 * Gets the number of digital channels in the current system.
70 *
71 * @return the number of digital channels
72 */
74
75/**
76 * Gets the number of PWM channels in the current system.
77 *
78 * @return the number of PWM channels
79 */
81
82/**
83 * Gets the number of digital IO PWM outputs in the current system.
84 *
85 * @return the number of digital IO PWM outputs
86 */
88
89/**
90 * Gets the number of quadrature encoders in the current system.
91 *
92 * @return the number of quadrature encoders
93 */
94int32_t HAL_GetNumEncoders(void);
95
96/**
97 * Gets the number of interrupts in the current system.
98 *
99 * @return the number of interrupts
100 */
102
103/**
104 * Gets the number of relay channels in the current system.
105 *
106 * @return the number of relay channels
107 */
109
110/**
111 * Gets the number of relay headers in the current system.
112 *
113 * @return the number of relay headers
114 */
116
117/**
118 * Gets the number of PCM modules in the current system.
119 *
120 * @return the number of PCM modules
121 */
123
124/**
125 * Gets the number of solenoid channels in the current system.
126 *
127 * @return the number of solenoid channels
128 */
130
131/**
132 * Gets the number of PDP modules in the current system.
133 *
134 * @return the number of PDP modules
135 */
137
138/**
139 * Gets the number of PDP channels in the current system.
140 *
141 * @return the number of PDP channels
142 */
144
145/**
146 * Gets the number of PDH modules in the current system.
147 *
148 * @return the number of PDH modules
149 */
151
152/**
153 * Gets the number of PDH channels in the current system.
154 *
155 * @return the number of PDH channels
156 */
158
159/**
160 * Gets the number of PH modules in the current system.
161 *
162 * @return the number of PH modules
163 */
165
166/**
167 * Gets the number of PH channels in the current system.
168 *
169 * @return the number of PH channels
170 */
172
173/**
174 * Gets the number of duty cycle inputs in the current system.
175 *
176 * @return the number of Duty Cycle inputs
177 */
179
180/**
181 * Gets the number of addressable LED generators in the current system.
182 *
183 * @return the number of Addressable LED generators
184 */
186#ifdef __cplusplus
187} // extern "C"
188#endif
189/** @} */
int32_t HAL_GetNumPWMHeaders(void)
Gets the number of PWM headers in the current system.
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_GetNumAnalogTriggers(void)
Gets the number of analog triggers in the current system.
int32_t HAL_GetNumCTREPDPChannels(void)
Gets the number of PDP channels in the current system.
int32_t HAL_GetNumDigitalHeaders(void)
Gets the number of digital headers in the current system.
int32_t HAL_GetNumAnalogOutputs(void)
Gets the number of analog outputs 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_GetNumRelayChannels(void)
Gets the number of relay 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_GetNumAccumulators(void)
Gets the number of analog accumulators in the current system.
int32_t HAL_GetNumCounters(void)
Gets the number of counters in the current system.
int32_t HAL_GetNumRelayHeaders(void)
Gets the number of relay headers in the current system.
int32_t HAL_GetNumDigitalPWMOutputs(void)
Gets the number of digital IO PWM outputs 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.