[riot-notifications] [RIOT-OS/RIOT] WIP: tests/ieee802154_hal: extend radio hal test (#15761)

José Alamos notifications at github.com
Wed Jun 9 14:31:34 CEST 2021


@jia200x commented on this pull request.



> @@ -722,16 +693,170 @@ static int _caps_cmd(int argc, char **argv)
     return 0;
 }
 
+uint8_t payload[] = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam ornare lacinia mi elementum interdum ligula.";
+
+static int send(uint8_t *dst, size_t dst_len, iolist_t iol_data, size_t num, size_t time)
+{
+    uint8_t flags;
+    uint8_t mhr[IEEE802154_MAX_HDR_LEN];
+    int mhr_len;
+
+    le_uint16_t src_pan, dst_pan;
+
+    flags = IEEE802154_FCF_TYPE_DATA;// | IEEE802154_FCF_ACK_REQ;

This should be configurable. You can pass it in the function arguments:
```c
static int send(uint8_t *dst, size_t dst_len, iolist_t iol_data, size_t num, size_t time, bool ack_req)
...
  flags = IEEE802154_FCF_TYPE_DATA;
  if (ack_req) {
      flags |= IEEE802154_FCF_ACK_REQ;
  }
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/15761#pullrequestreview-679588500
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210609/3ddc1b7f/attachment.htm>


More information about the notifications mailing list