OpenOCD
certus.h File Reference
Include dependency graph for certus.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int lattice_certus_connect_spi_to_jtag (struct lattice_pld_device *pld_device_info)
 
int lattice_certus_disconnect_spi_from_jtag (struct lattice_pld_device *pld_device_info)
 
int lattice_certus_get_facing_read_bits (struct lattice_pld_device *pld_device_info, unsigned int *facing_read_bits)
 
int lattice_certus_load (struct lattice_pld_device *lattice_device, struct lattice_bit_file *bit_file)
 
int lattice_certus_read_status (struct jtag_tap *tap, uint64_t *status, uint64_t out)
 
int lattice_certus_read_usercode (struct jtag_tap *tap, uint32_t *usercode, uint32_t out)
 
int lattice_certus_refresh (struct lattice_pld_device *lattice_device)
 
int lattice_certus_write_usercode (struct lattice_pld_device *lattice_device, uint32_t usercode)
 

Function Documentation

◆ lattice_certus_connect_spi_to_jtag()

◆ lattice_certus_disconnect_spi_from_jtag()

int lattice_certus_disconnect_spi_from_jtag ( struct lattice_pld_device pld_device_info)

◆ lattice_certus_get_facing_read_bits()

int lattice_certus_get_facing_read_bits ( struct lattice_pld_device pld_device_info,
unsigned int *  facing_read_bits 
)

Definition at line 299 of file certus.c.

References ERROR_FAIL, and ERROR_OK.

Referenced by lattice_get_stuff_bits().

◆ lattice_certus_load()

◆ lattice_certus_read_status()

int lattice_certus_read_status ( struct jtag_tap tap,
uint64_t *  status,
uint64_t  out 
)

Definition at line 20 of file certus.c.

References lattice_read_u64_register(), LSC_READ_STATUS, and status.

Referenced by lattice_read_status_u64().

◆ lattice_certus_read_usercode()

int lattice_certus_read_usercode ( struct jtag_tap tap,
uint32_t *  usercode,
uint32_t  out 
)

Definition at line 25 of file certus.c.

References lattice_read_u32_register(), and READ_USERCODE.

Referenced by lattice_read_usercode().

◆ lattice_certus_refresh()

int lattice_certus_refresh ( struct lattice_pld_device lattice_device)

◆ lattice_certus_write_usercode()

int lattice_certus_write_usercode ( struct lattice_pld_device lattice_device,
uint32_t  usercode 
)

Definition at line 30 of file certus.c.

References ERROR_FAIL, and LOG_ERROR.

Referenced by lattice_write_usercode().