Zephyr API Documentation 4.2.99
A Scalable Open Source RTOS
|
Data Structures | |
struct | swdp_api |
Serial Wire Debug Port (SWDP) driver API. More... |
Macros | |
#define | SWDP_TRANSFER_ERROR BIT(3) |
Transfer or parity error detected during transaction. |
SWD Packet Request Bits | |
Bit definitions for SWD packet request fields. These bits are used to construct the 8-bit request packet header sent during an SWD transaction. | |
#define | SWDP_REQUEST_APnDP BIT(0) |
Access Port (AP) or Debug Port (DP). | |
#define | SWDP_REQUEST_RnW BIT(1) |
Read (1) or Write (0) operation. | |
#define | SWDP_REQUEST_A2 BIT(2) |
Address bit 2 for register selection. | |
#define | SWDP_REQUEST_A3 BIT(3) |
Address bit 3 for register selection. |
SWD Acknowledge (ACK) Response Bits | |
Bit definitions for SWD acknowledge response fields. These bits are used to indicate the result of an SWD transaction. | |
#define | SWDP_ACK_OK BIT(0) |
Transaction completed successfully. | |
#define | SWDP_ACK_WAIT BIT(1) |
Target requests to retry the transaction later. | |
#define | SWDP_ACK_FAULT BIT(2) |
Target detected a fault condition. |
SWDP Interface Pin Definitions | |
Pin identifiers for SWDP interface control. These constants define bit positions for controlling individual pins in the SWDP interface. | |
#define | SWDP_SWCLK_PIN 0U |
Serial Wire Clock (SWCLK) pin identifier. | |
#define | SWDP_SWDIO_PIN 1U |
Serial Wire Data Input/Output (SWDIO) pin identifier. | |
#define | SWDP_nRESET_PIN 7U |
Active-low reset (nRESET) pin identifier. |
#define SWDP_ACK_FAULT BIT(2) |
#include <zephyr/drivers/swdp.h>
Target detected a fault condition.
#define SWDP_ACK_OK BIT(0) |
#include <zephyr/drivers/swdp.h>
Transaction completed successfully.
#define SWDP_ACK_WAIT BIT(1) |
#include <zephyr/drivers/swdp.h>
Target requests to retry the transaction later.
#define SWDP_nRESET_PIN 7U |
#include <zephyr/drivers/swdp.h>
Active-low reset (nRESET) pin identifier.
#define SWDP_REQUEST_A2 BIT(2) |
#include <zephyr/drivers/swdp.h>
Address bit 2 for register selection.
#define SWDP_REQUEST_A3 BIT(3) |
#include <zephyr/drivers/swdp.h>
Address bit 3 for register selection.
#define SWDP_REQUEST_APnDP BIT(0) |
#define SWDP_REQUEST_RnW BIT(1) |
#include <zephyr/drivers/swdp.h>
Read (1) or Write (0) operation.
#define SWDP_SWCLK_PIN 0U |
#include <zephyr/drivers/swdp.h>
Serial Wire Clock (SWCLK) pin identifier.
#define SWDP_SWDIO_PIN 1U |
#include <zephyr/drivers/swdp.h>
Serial Wire Data Input/Output (SWDIO) pin identifier.
#define SWDP_TRANSFER_ERROR BIT(3) |
#include <zephyr/drivers/swdp.h>
Transfer or parity error detected during transaction.