WPILibC++ 2027.0.0-alpha-2
Loading...
Searching...
No Matches
CANAPI.h File Reference
#include <stdint.h>
#include "hal/CAN.h"
#include "hal/CANAPITypes.h"
#include "hal/Types.h"

Go to the source code of this file.

Functions

HAL_CANHandle HAL_InitializeCAN (int32_t busId, HAL_CANManufacturer manufacturer, int32_t deviceId, HAL_CANDeviceType deviceType, int32_t *status)
 Initializes a CAN device.
 
void HAL_CleanCAN (HAL_CANHandle handle)
 Frees a CAN device.
 
void HAL_WriteCANPacket (HAL_CANHandle handle, int32_t apiId, const struct HAL_CANMessage *message, int32_t *status)
 Writes a packet to the CAN device with a specific ID.
 
void HAL_WriteCANPacketRepeating (HAL_CANHandle handle, int32_t apiId, const struct HAL_CANMessage *message, int32_t repeatMs, int32_t *status)
 Writes a repeating packet to the CAN device with a specific ID.
 
void HAL_WriteCANRTRFrame (HAL_CANHandle handle, int32_t apiId, const struct HAL_CANMessage *message, int32_t *status)
 Writes an RTR frame of the specified length to the CAN device with the specific ID.
 
void HAL_StopCANPacketRepeating (HAL_CANHandle handle, int32_t apiId, int32_t *status)
 Stops a repeating packet with a specific ID.
 
void HAL_ReadCANPacketNew (HAL_CANHandle handle, int32_t apiId, struct HAL_CANReceiveMessage *message, int32_t *status)
 Reads a new CAN packet.
 
void HAL_ReadCANPacketLatest (HAL_CANHandle handle, int32_t apiId, struct HAL_CANReceiveMessage *message, int32_t *status)
 Reads a CAN packet.
 
void HAL_ReadCANPacketTimeout (HAL_CANHandle handle, int32_t apiId, struct HAL_CANReceiveMessage *message, int32_t timeoutMs, int32_t *status)
 Reads a CAN packet.