![]() |
Bioscara
DALSA's DIY SCARA Robot Arm.
|
joint firmware header More...
#include <Arduino.h>Go to the source code of this file.
Namespaces | |
| namespace | bioscara_joint_firmware |
| Joint firmware. | |
Macros | |
| #define | ACK 'O' |
| #define | NACK 'N' |
| #define | MAX_BUFFER 4 |
| Maximum size of I2C Payload in bytes. | |
| #define | RFLAGS_SIZE 1 |
| Size of the return flags in bytes. | |
| #define | DUMP_BUFFER(buffer, size) |
| Macro to dump a buffer to the serial console. | |
Functions | |
| template<typename T > | |
| void | bioscara_joint_firmware::readValue (T &val, uint8_t *rxBuf, size_t rx_length) |
| Reads a value from a buffer to a value of the specified type. | |
| template<typename T > | |
| int | bioscara_joint_firmware::writeValue (const T val, uint8_t *txBuf, size_t &tx_length) |
| Writes a value of the specified type to a buffer. | |
joint firmware header
This file contains definitions and macros for the joint firmware.
| #define ACK 'O' |
| #define DUMP_BUFFER | ( | buffer, | |
| size | |||
| ) |
Macro to dump a buffer to the serial console.
| buffer | pointer to a buffer to dump to the console |
| size | number of bytes to dump |
| #define MAX_BUFFER 4 |
Maximum size of I2C Payload in bytes.
4 bytes used to transmit floats and int32_t
| #define NACK 'N' |
| #define RFLAGS_SIZE 1 |
Size of the return flags in bytes.
Only one byte used and hence set to 1.