[riot-notifications] [projects] added test application for nativenet transceiver (#25)

Christian Mehlis notifications at github.com
Tue Aug 20 20:56:50 CEST 2013


> +    radio_packet_t p;
> +
> +    mesg.type = SND_PKT;
> +    mesg.content.ptr = (char*) &tcmd;
> +
> +    tcmd.transceivers = TRANSCEIVER_NATIVE;
> +    tcmd.data = &p;
> +
> +    p.length = PACKET_SIZE;
> +    p.dst = 0;
> +    snd_buffer[0] = SENDER_ADDR;
> +
> +    puts("Start sending packets");
> +    while (1) {
> +        snd_buffer[1] = (i & 0xFF00) >> 8;
> +        snd_buffer[2] = i & 0x00FF;

what does this do? you are using byte 1 and 2 for some magic...the left hand needs clarification 

---
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/projects/pull/25/files#r5877632
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20130820/f8ece517/attachment.html>


More information about the notifications mailing list