10 #define SWDBUFLEN 0x100 35 enum OR_STATUS_CODES {
36 OR_STATUS_ACK = 0b001,
37 OR_STATUS_WAIT = 0b010,
38 OR_STATUS_FAULT = 0b100,
39 OR_STATUS_PARITY = 0b1000,
40 OR_STATUS_NOTHING = 0b11111111
49 extern uint8_t
ReadDP (uint8_t address, uint32_t *data);
57 extern uint8_t
WriteDP (uint8_t address, uint32_t data);
72 extern uint8_t
ReadAP (uint8_t address, uint32_t *data);
80 extern uint8_t
ReadAP2 (uint8_t address, uint32_t *data);
88 extern uint8_t
WriteAP (uint8_t address, uint32_t data);
95 extern uint8_t
Connect (uint32_t *CoreID);
103 extern uint8_t
ReadMemory (uint32_t address, uint32_t *data);
112 extern uint8_t
ReadMemoryArray (uint32_t address, uint32_t *data, uint32_t count);
120 extern uint8_t
WriteMemory (uint32_t address, uint32_t data);
129 extern uint8_t
WriteMemoryArray(uint32_t address,
const uint32_t *data, uint32_t count);
132 extern uint8_t
Attach (
void);
135 extern uint8_t
Run (
void);
138 extern uint8_t
Step (
void);
141 extern uint8_t
Stop (
void);
143 extern uint8_t
Reset (
void);
155 extern uint8_t
ReadCore (uint8_t regno, uint32_t *data);
163 extern uint8_t
WriteCore (uint8_t regno, uint32_t data);
uint8_t Step(void)
Definition: swd-api.c:204
uint8_t SetAPSelect(uint8_t address)
Nastavení AP.
Definition: swd-api.c:22
uint8_t Attach(void)
Definition: swd-api.c:103
uint8_t Connect(uint32_t *CoreID)
Připojení k cíli.
Definition: swd-api.c:64
uint8_t ReadAP2(uint8_t address, uint32_t *data)
Čtení AP dvakrát.
Definition: swd-api.c:45
uint8_t WriteAP(uint8_t address, uint32_t data)
Zápis AP.
Definition: swd-api.c:53
uint8_t ReadDP(uint8_t address, uint32_t *data)
Čtení DP.
Definition: swd-api.c:6
uint8_t ReadAP(uint8_t address, uint32_t *data)
Čtení AP.
Definition: swd-api.c:33
uint8_t WriteMemoryArray(uint32_t address, const uint32_t *data, uint32_t count)
Zápis bloku do paměti.
Definition: swd-api.c:174
uint8_t Stop(void)
Definition: swd-api.c:220
uint8_t Run(void)
Definition: swd-api.c:188
uint8_t WriteMemory(uint32_t address, uint32_t data)
Zápis slova do paměti.
Definition: swd-api.c:163
uint8_t ReadCore(uint8_t regno, uint32_t *data)
Čtení registru.
Definition: swd-api.c:256
uint8_t ReadMemoryArray(uint32_t address, uint32_t *data, uint32_t count)
Čtení bloku paměti.
Definition: swd-api.c:148
uint8_t WriteCore(uint8_t regno, uint32_t data)
Zápis do registru.
Definition: swd-api.c:265
uint8_t Reset(void)
Reset.
Definition: swd-api.c:236
uint8_t WaitHalt(void)
Definition: swd-api.c:274
uint8_t WriteDP(uint8_t address, uint32_t data)
Zápis DP.
Definition: swd-api.c:14
uint8_t ReadMemory(uint32_t address, uint32_t *data)
Čtení slova paměti.
Definition: swd-api.c:140