can.h
1.01 KB
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
44
45
46
47
48
49
50
/**
@file can.h
@date 2012-02-24
@author 장길석 jks@falinux.com
@brief can을 사용한 통신을 담당한다.
@modify
@todo
@bug
@remark
@warning
*/
//
// 저작권 에프에이리눅스(주)
// 외부공개 금지
//
//----------------------------------------------------------------------------
#ifndef _CAN_H_
#define _CAN_H_
#ifdef __cplusplus
extern "C" {
#endif
/// @{
/// @brief 외부에서 사용할수 있는 객체함수 리스트
typedef struct can_frame can_frame_t;
typedef struct can_filter can_filter_t;
typedef struct ifreq ifreq_t;
poll_obj_t *can_open( char *can_port, can_filter_t *filter, int filter_size);
void can_close( poll_obj_t *obj );
int can_write( poll_obj_t *obj, can_frame_t *frame);
int can_read( poll_obj_t *obj, can_frame_t *frame);
int can_write_simple( can_frame_t *frame);
int can_read_simple( can_frame_t *frame );
/// @}
#ifdef __cplusplus
}
#endif
#endif