Functions
tmr_utils.c File Reference

Mercury API - utility functions. More...

#include <stddef.h>
#include "osdep.h"
#include "tmr_types.h"
#include "tmr_utils.h"
Include dependency graph for tmr_utils.c:

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)

Detailed Description

Mercury API - utility functions.

Author:
Nathan Williams
Date:
12/10/2009

Definition in file tmr_utils.c.


Function Documentation

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.

Parameters:
bitCountnumber of bits to hold
Returns:
Minimum length of bytes that can contain that many bits

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.



thingmagic_rfid
Author(s): Brian Bingham
autogenerated on Thu May 16 2019 03:01:26