#include "./profinet/profinet_cb_alarm_ind.hpp"
#include "./profinet/profinet.hpp"

int profinet_cb_alarm_ind (
    pnet_t * net,
    void * arg,
    uint32_t arep,
    const pnet_alarm_argument_t * p_alarm_arg,
    uint16_t data_len,
    uint16_t data_usi,
    const uint8_t * p_data)
{
    Profinet * const profinet_ptr = static_cast<Profinet*>(arg);

    return profinet_ptr->callbackAlarmInd(arep, p_alarm_arg, data_len, data_usi, p_data);
}