Definition in file AVRGSM_zip.c.
#include "AVRGSM_zip.h"
Include dependency graph for AVRGSM_zip.c:
Go to the source code of this file.
Functions | |
int | ZIP_atoi (unsigned char *a) |
Converting ascii char string to int. | |
int | ZIP_compress (unsigned char *in, unsigned char *discarded, unsigned char ret[]) |
ZIP_compress will take a user defined text code it into the PDU format. | |
int | ZIP_decompress (unsigned char *compressed, unsigned char *decompressed) |
ZIP_decompress will decode a message in PDU format into a readable string. | |
int | ZIP_htoi (unsigned char hex) |
Convert hex to int. | |
void | ZIP_itoh (int n, unsigned char *ret) |
Converting int [0->255] to hex value. | |
Variables | |
const unsigned char __flash | hex_lookup [] = hex_nmbr |
Lookup table -> int 2 hex. | |
const unsigned char __flash | mask [7] = {1,3,7,15,31,63,127} |
Lookup table -> mask. | |
const unsigned char __flash | power [7] = {128,64,32,16,8,4,2} |
Lookup table -> 2^( 7 - i ). |
|
Converting ascii char string to int.
Definition at line 140 of file AVRGSM_zip.c. Referenced by TOOLS_decodeCMTI().
|
|
ZIP_compress will take a user defined text code it into the PDU format.
Local variables Definition at line 40 of file AVRGSM_zip.c. References hex_lookup, mask, MESSAGE_LENGTH, and power. Referenced by API_sendmsg().
|
|
ZIP_decompress will decode a message in PDU format into a readable string.
Local variables Definition at line 91 of file AVRGSM_zip.c. References mask, and ZIP_htoi(). Referenced by API_readmsg().
Here is the call graph for this function: ![]() |
|
Convert hex to int. This function will take a hex in char format and return int value
Definition at line 164 of file AVRGSM_zip.c. Referenced by TOOLS__decodeCMGR(), and ZIP_decompress().
|
|
Converting int [0->255] to hex value.
Definition at line 187 of file AVRGSM_zip.c. References hex_lookup. Referenced by API_sendmsg().
|
|
Lookup table -> int 2 hex.
Definition at line 26 of file AVRGSM_zip.c. Referenced by ZIP_compress(), and ZIP_itoh(). |
|
Lookup table -> mask.
Definition at line 27 of file AVRGSM_zip.c. Referenced by LCD_WriteDigit(), ZIP_compress(), and ZIP_decompress(). |
|
Lookup table -> 2^( 7 - i ).
Definition at line 28 of file AVRGSM_zip.c. Referenced by ZIP_compress(). |