ioLibrary for Cortex M series
Classes | Macros | Typedefs | Functions
util.h File Reference

Common Utility Function Set Source File. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

union  long2char_t
 
union  short2char_t
 

Macros

#define MEM_FREE(mem_p)   do{ if(mem_p) { free(mem_p); mem_p = NULL; } }while(0)
 
#define BITSET(var_v, bit_v)   (var_v |= bit_v)
 
#define BITCLR(var_v, bit_v)   (var_v &= ~(bit_v))
 

Typedefs

typedef void(* void_func )(void)
 
typedef void(* alarm_cbfunc )(int8_t arg)
 
typedef union long2char_t long2char
 
typedef union short2char_t short2char
 

Functions

int8_t alarm_set (uint32_t time, alarm_cbfunc cb, int8_t arg)
 
int8_t alarm_del (alarm_cbfunc cb, int8_t arg)
 
int8_t alarm_chk (alarm_cbfunc cb, int8_t arg)
 
void alarm_run (void)
 
int8_t digit_length (int32_t dgt, int8_t base)
 
int32_t str_check (int(*method)(int), int8_t *str)
 
void print_dump (void *buf, uint16_t len)
 
uint16_t checksum (uint8_t *src, uint32_t len)
 
int32_t base64_decode (int8_t *text, uint8_t *dst, int32_t numBytes)
 
int32_t base64_encode (int8_t *text, int32_t numBytes, int8_t *encodedText)
 

Detailed Description

Common Utility Function Set Source File.

Version
1.0
Date
2013/02/22
Revision
2013/02/22 - 1.0 Release
Author
Mike Jeong

Copyright (C) 2013 WIZnet. All rights reserved.

Definition in file util.h.

Typedef Documentation

void_func

General purpose void function form.

Definition at line 43 of file util.h.

alarm_cbfunc

Alarm call back function form.

Definition at line 44 of file util.h.