include/eth.h
/**
 * @brief Register callback for received frame
 *
 * This routine writes a buffer to be sent through the ethernet hardware.
 *
 * @param dev Pointer to the device structure for the driver instance.
 * @param cb  Callback function to be registered in the driver.
 *
 * @return Error code
 */
@brief Register callback for received frame
This routine writes a buffer to be sent through the ethernet hardware.

@param dev Pointer to the device structure for the driver instance.
@param cb  Callback function to be registered in the driver.

@return Error code
@brief Register callback for received frame This routine writes a buffer to be sent through the ethernet hardware . @param dev Pointer to the device structure for the driver instance . @param cb Callback function to be registered in the driver . @return Error code
static inline void eth_register_callback(struct device *dev,
		void (*cb)(u8_t *buffer, u16_t len))
{
	const struct eth_driver_api *api = dev->driver_api;
	api->register_callback(dev, cb);
}
static inline void eth_register_callback ( struct device * dev , void ( * cb ) ( u8_t * buffer , u16_t len ) ) { const struct eth_driver_api * api = dev -> driver_api ; api -> register_callback ( dev , cb ) ; }
@brief Register callback for received frame
 This routine writes a buffer to be sent through the ethernet hardware.
@brief Register callback for received frame This routine writes a buffer to be sent through the ethernet hardware .