Mercury API - utility functions. More...
Go to the source code of this file.
Functions | |
void | tm_gettime_consistent (uint32_t *high, uint32_t *low) |
void * | tm_memcpy (void *dest, const void *src, size_t n) |
int | tm_strcasecmp (const char *s1, const char *s2) |
char * | tm_strchr (const char *s, int c) |
char * | tm_strcpy (char *dest, const char *src) |
uint32_t | tm_time_subtract (uint32_t end, uint32_t start) |
int | tm_u8s_per_bits (int bitCount) |
uint32_t | TMR_byteArrayToInt (uint8_t data[], int offset) |
uint64_t | TMR_byteArrayToLong (uint8_t data[], int offset) |
uint16_t | TMR_byteArrayToShort (uint8_t data[], int offset) |
uint64_t | TMR_makeBitMask (int offset, int length) |
void | TMR_stringCopy (TMR_String *dest, const char *src, int len) |
void tm_gettime_consistent | ( | uint32_t * | high, |
uint32_t * | low | ||
) |
Definition at line 128 of file tmr_utils.c.
void* tm_memcpy | ( | void * | dest, |
const void * | src, | ||
size_t | n | ||
) |
Definition at line 39 of file tmr_utils.c.
int tm_strcasecmp | ( | const char * | s1, |
const char * | s2 | ||
) |
Definition at line 96 of file tmr_utils.c.
char* tm_strchr | ( | const char * | s, |
int | c | ||
) |
Definition at line 78 of file tmr_utils.c.
char* tm_strcpy | ( | char * | dest, |
const char * | src | ||
) |
Definition at line 59 of file tmr_utils.c.
uint32_t tm_time_subtract | ( | uint32_t | end, |
uint32_t | start | ||
) |
Definition at line 147 of file tmr_utils.c.
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 |
Definition at line 160 of file tmr_utils.c.
uint32_t TMR_byteArrayToInt | ( | uint8_t | data[], |
int | offset | ||
) |
Definition at line 195 of file tmr_utils.c.
uint64_t TMR_byteArrayToLong | ( | uint8_t | data[], |
int | offset | ||
) |
Definition at line 221 of file tmr_utils.c.
uint16_t TMR_byteArrayToShort | ( | uint8_t | data[], |
int | offset | ||
) |
Definition at line 209 of file tmr_utils.c.
uint64_t TMR_makeBitMask | ( | int | offset, |
int | length | ||
) |
Definition at line 180 of file tmr_utils.c.
void TMR_stringCopy | ( | TMR_String * | dest, |
const char * | src, | ||
int | len | ||
) |
Definition at line 166 of file tmr_utils.c.