include/def.h
changeset 301 f4b64aa848e1
parent 288 26015ee2c2c9
child 320 f82e758840bd
equal deleted inserted replaced
300:b83d063c4dc4 301:f4b64aa848e1
    76 /* Status of the node during the SDO transfert : */
    76 /* Status of the node during the SDO transfert : */
    77 #define SDO_SERVER  0x1
    77 #define SDO_SERVER  0x1
    78 #define SDO_CLIENT  0x2
    78 #define SDO_CLIENT  0x2
    79 #define SDO_UNKNOWN 0x3             
    79 #define SDO_UNKNOWN 0x3             
    80 
    80 
       
    81 /* SDOrx ccs: client command specifier */
       
    82 #define DOWNLOAD_SEGMENT_REQUEST     0
       
    83 #define INITIATE_DOWNLOAD_REQUEST    1
       
    84 #define INITIATE_UPLOAD_REQUEST      2
       
    85 #define UPLOAD_SEGMENT_REQUEST       3
       
    86 #define ABORT_TRANSFER_REQUEST       4
       
    87 
       
    88 /* SDOtx scs: server command specifier */
       
    89 #define UPLOAD_SEGMENT_RESPONSE      0
       
    90 #define DOWNLOAD_SEGMENT_RESPONSE    1
       
    91 #define INITIATE_DOWNLOAD_RESPONSE   3
       
    92 #define INITIATE_UPLOAD_RESPONSE     2
       
    93 #define ABORT_TRANSFER_REQUEST       4
       
    94 
       
    95 
    81 /*  Function Codes 
    96 /*  Function Codes 
    82    ---------------
    97    ---------------
    83   defined in the canopen DS301 
    98   defined in the canopen DS301 
    84 */
    99 */
    85 #define NMT	   0x0
   100 #define NMT	   0x0