OpenOCD
certus.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
3 /***************************************************************************
4  * Copyright (C) 2022 by Daniel Anselmi *
5  * danselmi@gmx.ch *
6  ***************************************************************************/
7 
8 #ifndef OPENOCD_PLD_CERTUS_H
9 #define OPENOCD_PLD_CERTUS_H
10 
11 #include "lattice.h"
12 
13 int lattice_certus_read_status(struct jtag_tap *tap, uint64_t *status, uint64_t out);
14 int lattice_certus_read_usercode(struct jtag_tap *tap, uint32_t *usercode, uint32_t out);
15 int lattice_certus_write_usercode(struct lattice_pld_device *lattice_device, uint32_t usercode);
16 int lattice_certus_load(struct lattice_pld_device *lattice_device, struct lattice_bit_file *bit_file);
17 int lattice_certus_connect_spi_to_jtag(struct lattice_pld_device *pld_device_info);
19 int lattice_certus_get_facing_read_bits(struct lattice_pld_device *pld_device_info, unsigned int *facing_read_bits);
20 int lattice_certus_refresh(struct lattice_pld_device *lattice_device);
21 
22 #endif /* OPENOCD_PLD_CERTUS_H */
int lattice_certus_load(struct lattice_pld_device *lattice_device, struct lattice_bit_file *bit_file)
Definition: certus.c:168
int lattice_certus_refresh(struct lattice_pld_device *lattice_device)
Definition: certus.c:309
int lattice_certus_write_usercode(struct lattice_pld_device *lattice_device, uint32_t usercode)
Definition: certus.c:30
int lattice_certus_get_facing_read_bits(struct lattice_pld_device *pld_device_info, unsigned int *facing_read_bits)
Definition: certus.c:299
int lattice_certus_read_usercode(struct jtag_tap *tap, uint32_t *usercode, uint32_t out)
Definition: certus.c:25
int lattice_certus_read_status(struct jtag_tap *tap, uint64_t *status, uint64_t out)
Definition: certus.c:20
int lattice_certus_connect_spi_to_jtag(struct lattice_pld_device *pld_device_info)
Definition: certus.c:236
int lattice_certus_disconnect_spi_from_jtag(struct lattice_pld_device *pld_device_info)
Definition: certus.c:282
Definition: jtag.h:101
uint8_t status[4]
Definition: vdebug.c:17