Subversion Repositories HomeAutomation

Rev

Rev 693 | Rev 869 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 693 Rev 789
Line 22... Line 22...
22
#ifndef STDCAN_H_
22
#ifndef STDCAN_H_
23
#define STDCAN_H_
23
#define STDCAN_H_
24
 
24
 
25
#include <config.h>
25
#include <config.h>
26
 
26
 
-
 
27
#include <drivers/can/canid.h>
27
#include <inttypes.h>
28
#include <inttypes.h>
28
 
29
 
29
#ifndef STDCAN_FILTER
30
#ifndef STDCAN_FILTER
30
#define STDCAN_FILTER 1
31
#define STDCAN_FILTER 0
31
#endif
32
#endif
32
#ifndef STDCAN_RX_QUEUE_SIZE
33
#ifndef STDCAN_RX_QUEUE_SIZE
33
#define STDCAN_RX_QUEUE_SIZE 8
34
#define STDCAN_RX_QUEUE_SIZE 8
34
#endif
35
#endif
35
#ifndef STDCAN_TX_QUEUE_SIZE
36
#ifndef STDCAN_TX_QUEUE_SIZE
Line 73... Line 74...
73
typedef struct {
74
typedef struct {
74
    unsigned short Type; /**< Application type (documented elsewhere). */
75
    unsigned short Type; /**< Application type (documented elsewhere). */
75
    unsigned short Version; /**< Application version number (application defined). */
76
    unsigned short Version; /**< Application version number (application defined). */
76
    unsigned char Id; /**< Node ID. */
77
    unsigned char Id; /**< Node ID. */
77
} Node_Desc_t;
78
} Node_Desc_t;
-
 
79
 
-
 
80
//(why have constats passed as parameters? they are defined at compiletime /arune)
-
 
81
 
78
 
82
 
79
/**
83
/**
80
 * @brief Initialize StdCan.
84
 * @brief Initialize StdCan.
81
 *
85
 *
82
 * Initializes the StdCan and lower layers and sends an Application Startup
86
 * Initializes the StdCan and lower layers and sends an Application Startup