po_hi_driver_rasta_spacewire.h 943 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/*
 * This is a part of PolyORB-HI-C distribution, a minimal
 * middleware written for generated code from AADL models.
 * You should use it with the Ocarina toolsuite.
 *
 * Copyright (C) 2010, European Space Agency
 */

#include <deployment.h>

#ifndef __PO_HI_DRIVER_RASTA_SPACEWIRE_H__
#define __PO_HI_DRIVER_RASTA_SPACEWIRE_H__

#ifdef __PO_HI_NEED_DRIVER_SPACEWIRE_RASTA

16
17
18
19
20
21
22
23
24
25
26
27
#define __PO_HI_DRIVER_RASTA_SPACEWIRE_RXPKT_BUF   5

#define __PO_HI_DRIVER_RASTA_SPACEWIRE_PKTSIZE      1000

typedef struct {
   unsigned char addr;
   unsigned char protid;
   unsigned char dummy;
   unsigned char channel;
   unsigned char data[__PO_HI_DRIVER_RASTA_SPACEWIRE_PKTSIZE];
}__po_hi_c_driver_spacewire_pkt_hdr_t;

28
29
void __po_hi_c_driver_spacewire_rasta_poller (void);

30
void __po_hi_c_driver_spacewire_rasta_init (char*, char*);
31
32
33
34
35
36
37

int __po_hi_c_driver_spacewire_rasta_sender (const __po_hi_task_id task_id, const __po_hi_port_t port);

#endif

#endif