Package edu.wpi.first.hal.can
Class CANStatus
java.lang.Object
edu.wpi.first.hal.can.CANStatus
Structure for holding the result of a CAN Status request.
-
Field Summary
Modifier and TypeFieldDescriptionint
The CAN Bus off count.double
The utilization of the CAN Bus.int
The CAN Bus receive error count.int
The CAN Bus transmit error count.int
The CAN Bus TX full count. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setStatus
(double percentBusUtilization, int busOffCount, int txFullCount, int receiveErrorCount, int transmitErrorCount) Set CAN bus status.
-
Field Details
-
percentBusUtilization
The utilization of the CAN Bus. -
busOffCount
The CAN Bus off count. -
txFullCount
The CAN Bus TX full count. -
receiveErrorCount
The CAN Bus receive error count. -
transmitErrorCount
The CAN Bus transmit error count.
-
-
Constructor Details
-
CANStatus
public CANStatus()Default constructor.
-
-
Method Details
-
setStatus
public void setStatus(double percentBusUtilization, int busOffCount, int txFullCount, int receiveErrorCount, int transmitErrorCount) Set CAN bus status.- Parameters:
percentBusUtilization
- CAN bus utilization as a percent.busOffCount
- Bus off event count.txFullCount
- TX buffer full event count.receiveErrorCount
- Receive error event count.transmitErrorCount
- Transmit error event count.
-