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

Oleg Hahm notifications at github.com
Wed Aug 21 12:12:43 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;

Agreed.
(The code is just about sending the 16 bit sequence number as payload.)

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


More information about the notifications mailing list