OpenOCD
|
JTAG functions. More...
Go to the source code of this file.
Functions | |
JAYLINK_API int | jaylink_jtag_clear_trst (struct jaylink_device_handle *devh) |
Clear the JTAG test reset (TRST) signal. More... | |
JAYLINK_API int | jaylink_jtag_io (struct jaylink_device_handle *devh, const uint8_t *tms, const uint8_t *tdi, uint8_t *tdo, uint16_t length, enum jaylink_jtag_version version) |
Perform a JTAG I/O operation. More... | |
JAYLINK_API int | jaylink_jtag_set_trst (struct jaylink_device_handle *devh) |
Set the JTAG test reset (TRST) signal. More... | |
JTAG functions.
Definition in file libjaylink/libjaylink/jtag.c.
JAYLINK_API int jaylink_jtag_clear_trst | ( | struct jaylink_device_handle * | devh | ) |
Clear the JTAG test reset (TRST) signal.
[in,out] | devh | Device handle. |
JAYLINK_OK | Success. |
JAYLINK_ERR_ARG | Invalid arguments. |
JAYLINK_ERR_TIMEOUT | A timeout occurred. |
JAYLINK_ERR_IO | Input/output error. |
JAYLINK_ERR | Other error conditions. |
Definition at line 186 of file libjaylink/libjaylink/jtag.c.
References jaylink_device::ctx, jaylink_device_handle::dev, JAYLINK_ERR_ARG, JAYLINK_OK, jaylink_strerror(), log_err(), transport_start_write(), and transport_write().
Referenced by jlink_reset().
JAYLINK_API int jaylink_jtag_io | ( | struct jaylink_device_handle * | devh, |
const uint8_t * | tms, | ||
const uint8_t * | tdi, | ||
uint8_t * | tdo, | ||
uint16_t | length, | ||
enum jaylink_jtag_version | version | ||
) |
Perform a JTAG I/O operation.
[in,out] | devh | Device handle. |
[in] | tms | Buffer to read TMS data from. |
[in] | tdi | Buffer to read TDI data from. |
[out] | tdo | Buffer to store TDO data on success. Its content is undefined on failure. The buffer must be large enough to contain at least the specified number of bits to transfer. |
[in] | length | Number of bits to transfer. |
[in] | version | Version of the JTAG command to use. |
JAYLINK_OK | Success. |
JAYLINK_ERR_ARG | Invalid arguments. |
JAYLINK_ERR_TIMEOUT | A timeout occurred. |
JAYLINK_ERR_IO | Input/output error. |
JAYLINK_ERR_DEV_NO_MEMORY | Not enough memory on the device to perform the operation. |
JAYLINK_ERR_DEV | Unspecified device error. |
JAYLINK_ERR | Other error conditions. |
Definition at line 75 of file libjaylink/libjaylink/jtag.c.
References buffer_set_u16(), jaylink_device::ctx, jaylink_device_handle::dev, JAYLINK_ERR_ARG, JAYLINK_ERR_DEV, JAYLINK_ERR_DEV_NO_MEMORY, JAYLINK_JTAG_VERSION_2, JAYLINK_JTAG_VERSION_3, JAYLINK_OK, jaylink_strerror(), log_err(), transport_read(), transport_start_write_read(), and transport_write().
Referenced by jlink_flush().
JAYLINK_API int jaylink_jtag_set_trst | ( | struct jaylink_device_handle * | devh | ) |
Set the JTAG test reset (TRST) signal.
[in,out] | devh | Device handle. |
JAYLINK_OK | Success. |
JAYLINK_ERR_ARG | Invalid arguments. |
JAYLINK_ERR_TIMEOUT | A timeout occurred. |
JAYLINK_ERR_IO | Input/output error. |
JAYLINK_ERR | Other error conditions. |
Definition at line 230 of file libjaylink/libjaylink/jtag.c.
References jaylink_device::ctx, jaylink_device_handle::dev, JAYLINK_ERR_ARG, JAYLINK_OK, jaylink_strerror(), log_err(), transport_start_write(), and transport_write().
Referenced by jlink_reset().