1653 master->cb_data = cb_data; |
1654 master->cb_data = cb_data; |
1654 } |
1655 } |
1655 |
1656 |
1656 /*****************************************************************************/ |
1657 /*****************************************************************************/ |
1657 |
1658 |
|
1659 /** |
|
1660 * Reads the current master status. |
|
1661 */ |
|
1662 |
|
1663 void ecrt_master_get_status(const ec_master_t *master, /**< EtherCAT master */ |
|
1664 ec_master_status_t *status /**< target status object */ |
|
1665 ) |
|
1666 { |
|
1667 status->bus_status = |
|
1668 master->pdo_slaves_offline ? EC_BUS_FAILURE : EC_BUS_OK; |
|
1669 status->bus_tainted = master->fsm.tainted; |
|
1670 status->slaves_responding = master->fsm.slaves_responding; |
|
1671 } |
|
1672 |
|
1673 /*****************************************************************************/ |
|
1674 |
1658 /** \cond */ |
1675 /** \cond */ |
1659 |
1676 |
1660 EXPORT_SYMBOL(ecrt_master_create_domain); |
1677 EXPORT_SYMBOL(ecrt_master_create_domain); |
1661 EXPORT_SYMBOL(ecrt_master_activate); |
1678 EXPORT_SYMBOL(ecrt_master_activate); |
1662 EXPORT_SYMBOL(ecrt_master_send); |
1679 EXPORT_SYMBOL(ecrt_master_send); |
1663 EXPORT_SYMBOL(ecrt_master_receive); |
1680 EXPORT_SYMBOL(ecrt_master_receive); |
1664 EXPORT_SYMBOL(ecrt_master_run); |
1681 EXPORT_SYMBOL(ecrt_master_run); |
1665 EXPORT_SYMBOL(ecrt_master_callbacks); |
1682 EXPORT_SYMBOL(ecrt_master_callbacks); |
1666 EXPORT_SYMBOL(ecrt_master_get_slave); |
1683 EXPORT_SYMBOL(ecrt_master_get_slave); |
|
1684 EXPORT_SYMBOL(ecrt_master_get_status); |
1667 |
1685 |
1668 /** \endcond */ |
1686 /** \endcond */ |
1669 |
1687 |
1670 /*****************************************************************************/ |
1688 /*****************************************************************************/ |