File: yepplib.h

package info (click to toggle)
yepp 0.0.5-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, sarge
  • size: 388 kB
  • ctags: 158
  • sloc: ansic: 1,328; makefile: 59; sh: 26
file content (57 lines) | stat: -rw-r--r-- 1,134 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#ifndef __YEPP_LIB_H
#define __YEPP_LIB_H
#endif

#ifdef __YEPP_LIB_H

extern float cur_block, blocks;
extern int fd;

struct yepp_status
{
   int flash_size;
   int flash_free;

   int card_size;
   int card_free;
};

struct yepp_dirent
{
   int index;
   int type;
   int size;
   char name[515];
   int attr;
};

extern int yepp_ping(void);
extern int yepp_wakeup(void);
extern struct yepp_status*  yepp_status(void);
extern void yepp_release(void);
extern struct yepp_status* yepp_connect(void);
extern struct yepp_dirent* yepp_dir(void);
extern int yepp_send_dword (int);
extern int yepp_send_word (int);
extern int yepp_bytes_to_blocks (int);
extern int upload_to_yepp(char*, int, int);
extern int yepp_delete(int);
extern int yepp_format(int);

#define YEPP_TYPE_DATA  0x00
#define YEPP_TYPE_MP3   0x01
#define YEPP_TYPE_TEL   0x02
#define YEPP_TYPE_SC4   0x03
#define YEPP_TYPE_RESV  0x04

#define YEPP_WHERE_BASE  0x0
#define YEPP_WHERE_CARD  0x1

#define YEPP_ORDER_LEN 252

#define YEPP_SERIAL_INDEX 0x1
#define YEPP_CONFIG_INDEX 0x2
#define YEPP_ENCODE_INDEX 0x3
#define YEPP_DECODE_INDEX 0x4

#endif /* __YEPP_LIB_H__ */