master/foe_request.h
branch1.4-foe
changeset 1708 fae3a1759126
parent 1707 11ec009e145d
child 1349 9baba3568df4
equal deleted inserted replaced
1707:11ec009e145d 1708:fae3a1759126
     1 /******************************************************************************
     1 /******************************************************************************
     2  *
     2  *
     3  *  $Id:$
     3  *  $Id$
     4  *
     4  *
     5  *  Copyright (C) 2008  Olav Zarges, imc Meßsysteme GmbH
     5  *  Copyright (C) 2008  Olav Zarges, imc Meßsysteme GmbH
     6  *
     6  *
     7  *  This file is part of the IgH EtherCAT Master.
     7  *  This file is part of the IgH EtherCAT Master.
     8  *
     8  *
    66     ec_request_state_t state; /**< FoE request state. */
    66     ec_request_state_t state; /**< FoE request state. */
    67     unsigned long jiffies_start; /**< Jiffies, when the request was issued. */
    67     unsigned long jiffies_start; /**< Jiffies, when the request was issued. */
    68     unsigned long jiffies_sent; /**< Jiffies, when the upload/download
    68     unsigned long jiffies_sent; /**< Jiffies, when the upload/download
    69                                      request was sent. */
    69                                      request was sent. */
    70     uint8_t *file_name; /**< Pointer to the filename. */
    70     uint8_t *file_name; /**< Pointer to the filename. */
    71     uint32_t abort_code; /**< FoE request abort code. Zero on success. */
    71     uint32_t result; /**< FoE request abort code. Zero on success. */
       
    72     uint32_t error_code; /**< Error code from an FoE Error Request. */
    72 } ec_foe_request_t;
    73 } ec_foe_request_t;
    73 
    74 
    74 /*****************************************************************************/
    75 /*****************************************************************************/
    75 
    76 
    76 void ec_foe_request_init(ec_foe_request_t *, uint8_t* file_name);
    77 void ec_foe_request_init(ec_foe_request_t *, uint8_t* file_name);