WIZlib Library API
ver 1.0
WIZlib Library API User Menual
|
Common Utility Function Set Source File. More...
Go to the source code of this file.
Macros | |
#define | MEM_FREE(mem_p) do{ if(mem_p) { free(mem_p); mem_p = NULL; } }while(0) |
If pointer is not NULL, free it and set to NULL. | |
#define | BITSET(var_v, bit_v) (var_v |= bit_v) |
Set bit in variable. | |
#define | BITCLR(var_v, bit_v) (var_v &= ~(bit_v)) |
Clear bit in variable. | |
Typedefs | |
typedef void(* | void_func )(void) |
General purpose void function form. | |
typedef void(* | alarm_cbfunc )(int8 arg) |
Alarm call back function form. | |
typedef union long2char_t | long2char |
General purpose type change union (32bit <-> 8bit). | |
typedef union short2char_t | short2char |
General purpose type change union (16bit <-> 8bit). | |
Functions | |
int8 | alarm_set (uint32 time, alarm_cbfunc cb, int8 arg) |
Add Alarm event to the waiting queue. More... | |
int8 | alarm_del (alarm_cbfunc cb, int8 arg) |
Delete Alarm event from the waiting queue. More... | |
int8 | alarm_chk (alarm_cbfunc cb, int8 arg) |
Count Alarm event which have same condition with param from the waiting queue. More... | |
void | alarm_run (void) |
Alarm Module Handler. More... | |
int8 | digit_length (int32 dgt, int8 base) |
Count digit's letter Ex) digit_length(12345, 10) : This will return 5. More... | |
int32 | str_check (int(*method)(int), int8 *str) |
Check string with standard library method. More... | |
int8 * | strsep (register int8 **stringp, register const int8 *delim) |
Separate string into small peace by delimiter like strtok. More... | |
void | print_dump (void *buf, uint16 len) |
Print Binary Dump Data. More... | |
uint16 | checksum (uint8 *src, uint32 len) |
Calculate checksum of a stream. More... | |
int32 | base64_decode (int8 *text, uint8 *dst, int32 numBytes) |
Decode string with base64 protocol. More... | |
int32 | base64_encode (int8 *text, int32 numBytes, int8 *encodedText) |
Encode string with base64 protocol. More... | |
Common Utility Function Set Source File.
Definition in file util.h.