|
Zephyr API Documentation 4.4.0-rc1
A Scalable Open Source RTOS
|
Interfaces for Debug Access Port (DAP) Link backends. More...
Files | |
| file | dap_link.h |
| Main header file for the DAP Link API. | |
Data Structures | |
| struct | dap_link_context |
| DAP Link runtime context (opaque type). More... | |
Macros | |
| #define | DAP_LINK_CONTEXT_DEFINE(ctx_name, ctx_dev) |
| Statically define a DAP Link context. | |
Functions | |
| int | dap_link_init (struct dap_link_context *const dap_link_ctx) |
| Initialize a DAP Link context. | |
| void | dap_link_set_pkt_size (struct dap_link_context *const dap_link_ctx, const uint16_t pkt_size) |
| Set the packet size used by a DAP Link backend. | |
| int | dap_link_backend_usb_init (struct dap_link_context *const dap_link_ctx) |
| Initialize the DAP Link USB backend. | |
Interfaces for Debug Access Port (DAP) Link backends.
| #define DAP_LINK_CONTEXT_DEFINE | ( | ctx_name, | |
| ctx_dev ) |
#include <zephyr/dap/dap_link.h>
Statically define a DAP Link context.
Example usage:
| ctx_name | Name of the static context object to define. |
| ctx_dev | SWDP device used by the DAP Link backend. |
| int dap_link_backend_usb_init | ( | struct dap_link_context *const | dap_link_ctx | ) |
#include <zephyr/dap/dap_link.h>
Initialize the DAP Link USB backend.
| [in] | dap_link_ctx | Context to bind to the USB backend. |
| 0 | Successfully initialized the USB backend. |
| -errno | Negative error code on failure. |
| int dap_link_init | ( | struct dap_link_context *const | dap_link_ctx | ) |
#include <zephyr/dap/dap_link.h>
Initialize a DAP Link context.
| [in] | dap_link_ctx | Context to initialize. |
| 0 | Successfully initialized the context. |
| -errno | Negative error code on failure. |
| void dap_link_set_pkt_size | ( | struct dap_link_context *const | dap_link_ctx, |
| const uint16_t | pkt_size ) |
#include <zephyr/dap/dap_link.h>
Set the packet size used by a DAP Link backend.
| [in] | dap_link_ctx | Context to update. |
| [in] | pkt_size | Packet size (in bytes). |