master/fsm_foe.c
changeset 1416 85d20ae6736e
parent 1363 11c0b2caa253
child 1446 85ea5af50175
equal deleted inserted replaced
1415:9d1cdbf41247 1416:85d20ae6736e
    55 
    55 
    56 //#define DEBUG_FOE
    56 //#define DEBUG_FOE
    57 
    57 
    58 /*****************************************************************************/
    58 /*****************************************************************************/
    59 
    59 
       
    60 /** FoE OpCodes.
       
    61  */
    60 enum {
    62 enum {
    61     EC_FOE_OPCODE_RRQ  = 1,
    63     EC_FOE_OPCODE_RRQ  = 1, /**< Read request. */
    62     EC_FOE_OPCODE_WRQ  = 2,
    64     EC_FOE_OPCODE_WRQ  = 2, /**< Write request. */
    63     EC_FOE_OPCODE_DATA = 3,
    65     EC_FOE_OPCODE_DATA = 3, /**< Data. */
    64     EC_FOE_OPCODE_ACK  = 4,
    66     EC_FOE_OPCODE_ACK  = 4, /**< Acknowledge. */
    65     EC_FOE_OPCODE_ERR  = 5,
    67     EC_FOE_OPCODE_ERR  = 5, /**< Error. */
    66     EC_FOE_OPCODE_BUSY = 6
    68     EC_FOE_OPCODE_BUSY = 6  /**< Busy. */
    67 } ec_foe_opcode_t;
    69 } ec_foe_opcode_t;
    68 
    70 
    69 /*****************************************************************************/
    71 /*****************************************************************************/
    70 
    72 
    71 int ec_foe_prepare_data_send(ec_fsm_foe_t *);
    73 int ec_foe_prepare_data_send(ec_fsm_foe_t *);