|
Fang-Robotics-MCB
Fang Robotics Team Codebase
|
Namespaces | |
| namespace | clock |
Classes | |
| class | ConditionalTimer |
| class | PeriodicTimer |
| class | Profiler |
| class | Timeout |
Typedefs | |
| using | ConditionalMilliTimer = ConditionalTimer< MilliTimeout > |
| using | PeriodicMilliTimer = PeriodicTimer< MilliTimeout > |
| using | PeriodicMicroTimer = PeriodicTimer< MicroTimeout > |
| using | MicroTimeout = Timeout< tap::arch::clock::getTimeMicroseconds > |
| using | MilliTimeout = Timeout< tap::arch::clock::getTimeMilliseconds > |
Functions | |
| template<typename T > | |
| void | dataToByteArray (T data, uint8_t *bytesOut, bool forward) |
| template<typename T > | |
| void | byteArrayToData (T *data, const uint8_t *bytesIn, bool forward) |
| template<typename T > | |
| void | convertToLittleEndian (T data, uint8_t *bytesOut) |
| template<typename T > | |
| void | convertToBigEndian (T data, uint8_t *bytesOut) |
| template<typename T > | |
| void | convertFromLittleEndian (T *data, const uint8_t *bytesIn) |
| template<typename T > | |
| void | convertFromBigEndian (T *data, const uint8_t *bytesIn) |
| float | bigEndianInt16ToFloat (const uint8_t *buff) |
| using tap::arch::ConditionalMilliTimer = typedef ConditionalTimer<MilliTimeout> |
| using tap::arch::MicroTimeout = typedef Timeout<tap::arch::clock::getTimeMicroseconds> |
| using tap::arch::MilliTimeout = typedef Timeout<tap::arch::clock::getTimeMilliseconds> |
| using tap::arch::PeriodicMicroTimer = typedef PeriodicTimer<MicroTimeout> |
| using tap::arch::PeriodicMilliTimer = typedef PeriodicTimer<MilliTimeout> |
|
inline |
Convert int16_t stored in big endian format in buff to a floating point value.
| [in] | buff | Buffer containing two bytes representing an int16_t in big endian format. |
|
inline |
Reads a byte array and stores its numeric value in the given number reference.
| T | the type to be read. |
| [out] | data | the reference to the number in which the byte array's numeric representation will be stored |
| [in] | bytesIn | the byte array to be read |
| [in] | forward | an indication of if the byte array should be read forwards or not |
| void tap::arch::convertFromBigEndian | ( | T * | data, |
| const uint8_t * | bytesIn | ||
| ) |
Converts a byte array from big endian and stores its numeric value in the given number reference. If the current architecture is in big endian, the bytes are maintained in the current order. If the current architecture is in little endian, the bytes are read and stored in reverse order.
| T | the type to be read. |
| [out] | data | the reference to the number in which the byte array's numeric representation will be stored |
| [in] | bytesIn | the byte array to be read from big endian |
| void tap::arch::convertFromLittleEndian | ( | T * | data, |
| const uint8_t * | bytesIn | ||
| ) |
Converts a byte array from little endian and stores its numeric value in the given number reference. If the current architecture is in little endian, the bytes are maintained in the current order. If the current architecture is in big endian, the bytes are read and stored in reverse order.
| T | the type to be read. |
| [out] | data | the reference to the number in which the byte array's numeric representation will be stored |
| [in] | bytesIn | the byte array to be read from little endian |
| void tap::arch::convertToBigEndian | ( | T | data, |
| uint8_t * | bytesOut | ||
| ) |
Converts a number into a byte array in big endian. If the current architecture is in big endian, the bytes are maintained in the current order. If the current architecture is in little endian, the bytes are read and stored in reverse order.
| T | the type to be read. |
| [in] | data | the number to be read |
| [out] | bytesOut | the reference to the array in which the bytes will be stored |
| void tap::arch::convertToLittleEndian | ( | T | data, |
| uint8_t * | bytesOut | ||
| ) |
Converts a number into a byte array in little endian. If the current architecture is in little endian, the bytes are maintained in the current order. If the current architecture is in big endian, the bytes are read and stored in reverse order.
| T | the type to be read. |
| [in] | data | the number to be read |
| [out] | bytesOut | the reference to the array in which the bytes will be stored |
|
inline |
Reads a number and stores its byte array representation in the given array reference.
| T | the type to be read. |
| [in] | data | the number to be read. |
| [out] | bytesOut | the reference to the array in which the bytes will be stored. |
| [in] | forward | an indication of if the number's bytes should be read forwards or not. |