master/device.c
changeset 101 b0c19892145a
parent 98 f564d0929292
child 104 052bc82d5442
equal deleted inserted replaced
100:d3d4654e499d 101:b0c19892145a
   253    Prüft, ob das Net-Device \a dev zum registrierten EtherCAT-Gerät gehört.
   253    Prüft, ob das Net-Device \a dev zum registrierten EtherCAT-Gerät gehört.
   254 
   254 
   255    \return 0 wenn nein, nicht-null wenn ja.
   255    \return 0 wenn nein, nicht-null wenn ja.
   256 */
   256 */
   257 
   257 
   258 int EtherCAT_dev_is_ec(const ec_device_t *device,  /**< EtherCAT-Gerät */
   258 inline int EtherCAT_dev_is_ec(const ec_device_t *device, /**< EtherCAT-Gerät */
   259                        const struct net_device *dev /**< Net-Device */
   259                        const struct net_device *dev /**< Net-Device */
   260                        )
   260                        )
   261 {
   261 {
   262     return device && device->dev == dev;
   262     return device && device->dev == dev;
   263 }
   263 }