#include "./profinet/profinet_cb_write_ind.hpp"
#include "./profinet/profinet.hpp"

int profinet_cb_write_ind (
        pnet_t * net,
        void * arg,
        uint32_t arep,
        uint32_t api,
        uint16_t slot_nbr,
        uint16_t subslot_nbr,
        uint16_t idx,
        uint16_t sequence_number,
        uint16_t write_length,
        const uint8_t * p_write_data,
        pnet_result_t * p_result)
{
    Profinet * const profinet_ptr = static_cast<Profinet*>(arg);

    return profinet_ptr->callbackWriteInd( arep, 
                                    slot_nbr, 
                                    subslot_nbr, 
                                    idx, 
                                    sequence_number, 
                                    write_length, 
                                    p_write_data, 
                                    p_result);
}