1 #ifndef __FDL_CHANNEL_H_
2 #define __FDL_CHANNEL_H_
5 typedef struct FDL_ChannelHandler
7 int (*Open) (struct FDL_ChannelHandler *channel, unsigned int baudrate);
8 int (*Read) (struct FDL_ChannelHandler *channel, const unsigned char *buf, unsigned int len);
9 char (*GetChar) (struct FDL_ChannelHandler *channel);
10 int (*GetSingleChar) (struct FDL_ChannelHandler *channel);
11 int (*Write) (struct FDL_ChannelHandler *channel, const unsigned char *buf, unsigned int len);
12 int (*PutChar) (struct FDL_ChannelHandler *channel, const unsigned char ch);
13 int (*SetBaudrate) (struct FDL_ChannelHandler *channel, unsigned int baudrate);
14 int (*Close) (struct FDL_ChannelHandler *channel);
16 } FDL_ChannelHandler_T;
18 struct FDL_ChannelHandler *FDL_ChannelGet();