keytag.h

Go to the documentation of this file.
00001 
00043 #ifndef NET_KEYTAG_H
00044 #define NET_KEYTAG_H
00045 
00046 #include <cfg/cfg_keytag.h>
00047 
00048 #include <kern/kfile.h>
00049 
00050 
00054 typedef struct TagPacket
00055 {
00056     KFile *tag;                        
00057     KFile *host;                       
00058     bool sync;                         
00059     size_t len;                        
00060     uint8_t buf[CONFIG_TAG_MAX_LEN];   
00061 } TagPacket;
00062 
00063 void keytag_init(struct TagPacket *pkt, struct KFile *comm, struct KFile *tag);
00064 int keytag_recv(struct TagPacket *pkt, uint8_t *tag, size_t len);
00065 
00066 void keytag_poll(struct TagPacket *pkt);
00067 
00068 #endif /* NET_TAG_H */