#include "./profinet/profinet_cb_read_ind.hpp"
#include "./profinet/profinet.hpp"

int profinet_cb_read_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,
    uint8_t ** pp_read_data,
    uint16_t * p_read_length,
    pnet_result_t * p_result)
{
    Profinet * const profinet_ptr = static_cast<Profinet*>(arg);

    return profinet_ptr->callbackReadInd( arep, 
                                   slot_nbr, 
                                   subslot_nbr, 
                                   idx, 
                                   sequence_number, 
                                   pp_read_data, 
                                   p_read_length, 
                                   p_result);
}