Brian Silverman | 26e4e52 | 2015-12-17 01:56:40 -0500 | [diff] [blame^] | 1 | #pragma once |
| 2 | |
| 3 | #include <stdint.h> |
| 4 | #include "FRC_NetworkCommunication/CANSessionMux.h" |
| 5 | |
| 6 | void canTxSend(uint32_t arbID, uint8_t length, int32_t period = CAN_SEND_PERIOD_NO_REPEAT); |
| 7 | |
| 8 | void canTxPackInt8 (uint32_t arbID, uint8_t offset, uint8_t value); |
| 9 | void canTxPackInt16(uint32_t arbID, uint8_t offset, uint16_t value); |
| 10 | void canTxPackInt32(uint32_t arbID, uint8_t offset, uint32_t value); |
| 11 | void canTxPackFXP16(uint32_t arbID, uint8_t offset, double value); |
| 12 | void canTxPackFXP32(uint32_t arbID, uint8_t offset, double value); |
| 13 | |
| 14 | uint8_t canTxUnpackInt8 (uint32_t arbID, uint8_t offset); |
| 15 | uint32_t canTxUnpackInt32(uint32_t arbID, uint8_t offset); |
| 16 | uint16_t canTxUnpackInt16(uint32_t arbID, uint8_t offset); |
| 17 | double canTxUnpackFXP16(uint32_t arbID, uint8_t offset); |
| 18 | double canTxUnpackFXP32(uint32_t arbID, uint8_t offset); |
| 19 | |
| 20 | bool canRxReceive(uint32_t arbID); |
| 21 | |
| 22 | uint8_t canRxUnpackInt8 (uint32_t arbID, uint8_t offset); |
| 23 | uint16_t canRxUnpackInt16(uint32_t arbID, uint8_t offset); |
| 24 | uint32_t canRxUnpackInt32(uint32_t arbID, uint8_t offset); |
| 25 | double canRxUnpackFXP16(uint32_t arbID, uint8_t offset); |
| 26 | double canRxUnpackFXP32(uint32_t arbID, uint8_t offset); |