summaryrefslogtreecommitdiffabout
path: root/gammu/emb/common/device/serial/ser_djg.c
Unidiff
Diffstat (limited to 'gammu/emb/common/device/serial/ser_djg.c') (more/less context) (ignore whitespace changes)
-rw-r--r--gammu/emb/common/device/serial/ser_djg.c74
1 files changed, 74 insertions, 0 deletions
diff --git a/gammu/emb/common/device/serial/ser_djg.c b/gammu/emb/common/device/serial/ser_djg.c
new file mode 100644
index 0000000..ac9d7c8
--- a/dev/null
+++ b/gammu/emb/common/device/serial/ser_djg.c
@@ -0,0 +1,74 @@
1
2#include "../../gsmstate.h"
3
4#ifdef GSM_ENABLE_SERIALDEVICE
5#ifdef DJGPP
6
7#include "../../gsmcomon.h"
8#include "ser_djg.h"
9
10static GSM_Error serial_close(GSM_StateMachine *s)
11{
12 GSM_Device_SerialData *d = &s->Device.Data.Serial;
13
14 return ERR_NONE;
15}
16
17static GSM_Error serial_open (GSM_StateMachine *s)
18{
19 GSM_Device_SerialData *d = &s->Device.Data.Serial;
20
21 return ERR_NONE;
22}
23
24static GSM_Error serial_setparity(GSM_StateMachine *s, bool parity)
25{
26 GSM_Device_SerialData *d = &s->Device.Data.Serial;
27
28 return ERR_NONE;
29}
30
31static GSM_Error serial_setdtrrts(GSM_StateMachine *s, bool dtr, bool rts)
32{
33 GSM_Device_SerialData *d = &s->Device.Data.Serial;
34
35 return ERR_NONE;
36}
37
38static GSM_Error serial_setspeed(GSM_StateMachine *s, int speed)
39{
40 GSM_Device_SerialData *d = &s->Device.Data.Serial;
41
42 return ERR_NONE;
43}
44
45static int serial_read(GSM_StateMachine *s, void *buf, size_t nbytes)
46{
47 GSM_Device_SerialData *d = &s->Device.Data.Serial;
48
49 return 0;
50}
51
52static int serial_write(GSM_StateMachine *s, void *buf, size_t nbytes)
53{
54 GSM_Device_SerialData *d = &s->Device.Data.Serial;
55
56 return 0;
57}
58
59GSM_Device_Functions SerialDevice = {
60 serial_open,
61 serial_close,
62 serial_setparity,
63 serial_setdtrrts,
64 serial_setspeed,
65 serial_read,
66 serial_write
67};
68
69#endif
70#endif
71
72/* How should editor hadle tabs in this file? Add editor commands here.
73 * vim: noexpandtab sw=8 ts=8 sts=8:
74 */