File tree Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Original file line number Diff line number Diff line change 28
28
29
29
#include <inttypes.h>
30
30
31
- #define CO_SDO_xCS (v ) ((v)&0xE0)
32
- #define CO_SDO_N (v ) (((v) >> 2) & 0x03)
33
- #define CO_SDO_E BIT (1)
34
- #define CO_SDO_S BIT (0)
35
-
36
- #define CO_SDO_CCS_DOWNLOAD_SEG_REQ (0 << 5)
37
- #define CO_SDO_CCS_DOWNLOAD_INIT_REQ (1 << 5)
38
- #define CO_SDO_CCS_UPLOAD_INIT_REQ (2 << 5)
39
- #define CO_SDO_CCS_UPLOAD_SEG_REQ (3 << 5)
40
-
41
- #define CO_SDO_SCS_UPLOAD_SEG_RSP (0 << 5)
42
- #define CO_SDO_SCS_DOWNLOAD_SEG_RSP (1 << 5)
43
- #define CO_SDO_SCS_UPLOAD_INIT_RSP (2 << 5)
44
- #define CO_SDO_SCS_DOWNLOAD_INIT_RSP (3 << 5)
45
-
46
- #define CO_SDO_xCS_ABORT (4 << 5)
47
-
48
- #define CO_SDO_TOGGLE BIT (4)
49
- #define CO_SDO_N_SEG (v ) (((v) >> 1) & 0x07)
50
- #define CO_SDO_C BIT (0)
51
-
52
31
void co_sdo_abort (
53
32
co_net_t * net ,
54
33
uint16_t id ,
You can’t perform that action at this time.
0 commit comments