master/fsm_foe.h
changeset 1901 2a1106b1d863
parent 1465 3099d78343ea
child 2045 ff2a13a4603c
child 2498 9cdd7669dc0b
equal deleted inserted replaced
1900:25f848e2fbf4 1901:2a1106b1d863
    58     unsigned long jiffies_start; /**< FoE timestamp. */
    58     unsigned long jiffies_start; /**< FoE timestamp. */
    59     uint8_t subindex; /**< current subindex */
    59     uint8_t subindex; /**< current subindex */
    60     ec_foe_request_t *request; /**< FoE request */
    60     ec_foe_request_t *request; /**< FoE request */
    61     uint8_t toggle; /**< toggle bit for segment commands */
    61     uint8_t toggle; /**< toggle bit for segment commands */
    62 
    62 
    63     /** \cond */
    63     uint8_t *tx_buffer; /**< Buffer with data to transmit. */
       
    64     uint32_t tx_buffer_size; /**< Size of data to transmit. */
       
    65     uint32_t tx_buffer_offset; /**< Offset of data to tranmit next. */
       
    66     uint32_t tx_last_packet; /**< Current packet is last one to send. */
       
    67     uint32_t tx_packet_no; /**< FoE packet number. */
       
    68     uint32_t tx_current_size; /**< Size of current packet to send. */
       
    69     uint8_t *tx_filename; /**< Name of file to transmit. */
       
    70     uint32_t tx_filename_len; /**< Lenth of transmit file name. */
    64 
    71 
    65     uint32_t tx_errors;
    72     uint8_t *rx_buffer; /**< Buffer for received data. */
    66     uint8_t *tx_buffer;
    73     uint32_t rx_buffer_size; /**< Size of receive buffer. */
    67     uint32_t tx_buffer_size;
    74     uint32_t rx_buffer_offset; /**< Offset in receive buffer. */
    68     uint32_t tx_buffer_offset;
    75     uint32_t rx_expected_packet_no; /**< Expected receive packet number. */
    69     uint32_t tx_last_packet;
    76     uint32_t rx_last_packet; /**< Current packet is the last to receive. */
    70     uint32_t tx_packet_no;
    77     uint8_t *rx_filename; /**< Name of the file to receive. */
    71     uint32_t tx_current_size;
    78     uint32_t rx_filename_len; /**< Length of the receive file name. */
    72     uint8_t *tx_filename;
       
    73     uint32_t tx_filename_len;
       
    74 
       
    75 
       
    76     uint32_t rx_errors;
       
    77     uint8_t *rx_buffer;
       
    78     uint32_t rx_buffer_size;
       
    79     uint32_t rx_buffer_offset;
       
    80     uint32_t rx_current_size;
       
    81     uint32_t rx_packet_no;
       
    82     uint32_t rx_expected_packet_no;
       
    83     uint32_t rx_last_packet;
       
    84     uint8_t *rx_filename;
       
    85     uint32_t rx_filename_len;
       
    86 
       
    87     /** \endcond */
       
    88 };
    79 };
    89 
    80 
    90 /*****************************************************************************/
    81 /*****************************************************************************/
    91 
    82 
    92 void ec_fsm_foe_init(ec_fsm_foe_t *, ec_datagram_t *);
    83 void ec_fsm_foe_init(ec_fsm_foe_t *, ec_datagram_t *);