Example #1
0
static int _recv(netdev_t *netdev, void *buf, size_t len, void *info)
{
    cc2420_t *dev = (cc2420_t *)netdev;
    return (int)cc2420_rx(dev, buf, len, info);
}
Example #2
0
static int _recv(netdev2_t *netdev, char *buf, int len, void *info)
{
    cc2420_t *dev = (cc2420_t *)netdev;
    return (int)cc2420_rx(dev, (uint8_t *)buf, len, info);
}