Defines | Functions
communication.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define COMMUNICATION_END_BYTE   0x0a
#define COMMUNICATION_INT_BYTE   0x07
#define COMMUNICATION_START_BYTE   0x09

Functions

int decode (const unsigned char *src, int len, unsigned char *dst, int buf_max)
 デコード
int encode (const unsigned char *src, int len, unsigned char *dst, int buf_max)
 エンコード

Define Documentation

#define COMMUNICATION_END_BYTE   0x0a

Definition at line 26 of file communication.h.

#define COMMUNICATION_INT_BYTE   0x07

Definition at line 25 of file communication.h.

#define COMMUNICATION_START_BYTE   0x09

Definition at line 24 of file communication.h.


Function Documentation

int decode ( const unsigned char *  src,
int  len,
unsigned char *  dst,
int  buf_max 
)

デコード

Parameters:
src[in]デコードする文字列
len[in]デコードする文字列の長さ
dst[out]デコード後のデータ
buf_max[in]デコード後のデータバッファのサイズ
Returns:
デコード後のバイト数

Definition at line 86 of file communication.c.

int encode ( const unsigned char *  src,
int  len,
unsigned char *  dst,
int  buf_max 
)

エンコード

Definition at line 42 of file communication.c.



yp-spur
Author(s):
autogenerated on Fri May 10 2019 02:52:19