summaryrefslogtreecommitdiff
path: root/cleopatre/devkit/plcdrv/gidel/inc/plc_drv.h
blob: 8e57e2b112460d0cc0e71c248efdf156c3616b73 (plain)
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
#ifndef plc_drv_h
#define plc_drv_h
/* Cesar project {{{
 *
 * Copyright (C) 2008 Spidcom
 *
 * <<<Licence>>>
 *
 * }}} */
/**
 * \file    plc_drv.h
 * \brief   OS layer for the PLC driver.
 * \ingroup Cleopatre - Isis
 *
 * For the Gidel prototype this layer only precise how to receive a packet
 * and what to do when we receive an acknowledge of a previous sending frame.
 */

#include "common.h"

/** 
 * Receive a packet.
 *
 * \param  pointer  the packet pointer.
 * \param  length  the length of the packet.
 * \return  error code.
 */
int plcdrv_rx(void *pointer, int length);

/** 
 * Precedure executed when the frame is really sending to CESAR
 * and only when there are few buffer in the mailbox ring.
 */
void plcdrv_tx_ack(void);


#ifdef __UTESTS__
int parse_args(struct init_info *init, int argc, char **argv);
int create_tuntap(struct init_info *init);
#endif


#endif /* plc_drv_h */