Interfaces for Debug Access Port (DAP) Link backends.
More...
|
| file | dap_link.h |
| | Main header file for the DAP Link API.
|
| |
Interfaces for Debug Access Port (DAP) Link backends.
- Since
- 4.4
- Version
- 0.1.0
◆ DAP_LINK_CONTEXT_DEFINE
| #define DAP_LINK_CONTEXT_DEFINE |
( |
| ctx_name, |
|
|
| ctx_dev ) |
#include <zephyr/dap/dap_link.h>
Value:
.dev = ctx_dev, \
}
DAP Link runtime context (opaque type).
Definition dap_link.h:36
Statically define a DAP Link context.
Example usage:
#define DAP_LINK_CONTEXT_DEFINE(ctx_name, ctx_dev)
Statically define a DAP Link context.
Definition dap_link.h:73
#define DEVICE_DT_GET_ONE(compat)
Get a device reference from a devicetree compatible.
Definition device.h:367
- Parameters
-
| ctx_name | Name of the static context object to define. |
| ctx_dev | SWDP device used by the DAP Link backend. |
◆ dap_link_backend_usb_init()
#include <zephyr/dap/dap_link.h>
Initialize the DAP Link USB backend.
- Parameters
-
| [in] | dap_link_ctx | Context to bind to the USB backend. |
- Return values
-
| 0 | Successfully initialized the USB backend. |
| -errno | Negative error code on failure. |
◆ dap_link_init()
#include <zephyr/dap/dap_link.h>
Initialize a DAP Link context.
- Parameters
-
| [in] | dap_link_ctx | Context to initialize. |
- Return values
-
| 0 | Successfully initialized the context. |
| -errno | Negative error code on failure. |
◆ dap_link_set_pkt_size()
#include <zephyr/dap/dap_link.h>
Set the packet size used by a DAP Link backend.
- Parameters
-
| [in] | dap_link_ctx | Context to update. |
| [in] | pkt_size | Packet size (in bytes). |