Mercury API - generic utilities. More...
#include <stdint.h>#include <stddef.h>Functions | |
| int | tm_u8s_per_bits (int bitCount) |
| void | TMR_bytesToWords (uint16_t count, const uint8_t data[], uint16_t data16[]) |
| void | TMR_wordsToBytes (uint16_t count, const uint16_t data[], uint8_t buf[]) |
Mercury API - generic utilities.
| int tm_u8s_per_bits | ( | int | bitCount | ) |
Minimum number of bytes required to hold a given number of bits.
| bitCount | number of bits to hold |
| void TMR_bytesToWords | ( | uint16_t | count, | |
| const uint8_t | data[], | |||
| uint16_t | data16[] | |||
| ) |
This function will convert bytes into words format.
| count,: | the number of bytes to convert | |
| data,: | the data to convert into words | |
| data16,: | buffer to store the converted data |
| void TMR_wordsToBytes | ( | uint16_t | count, | |
| const uint16_t | data[], | |||
| uint8_t | buf[] | |||
| ) |
This function will convert words into bytes format.
| count,: | the number of words to convert | |
| data,: | the data to convert into bytes | |
| buf,: | buffer to store the converted data |
1.6.3