Select one of the symbols to view example projects that use it.
 
Outline
#define OPENOCD_PLD_LATTICE_H
#include <jtag/jtag.h>
#include "pld.h"
#include "lattice_bit.h"
#define BYPASS
lattice_pld_device
lattice_set_instr(struct jtag_tap *, uint8_t, tap_state_t);
lattice_read_u32_register(struct jtag_tap *, uint8_t, uint32_t *, uint32_t, bool);
lattice_read_u64_register(struct jtag_tap *, uint8_t, uint64_t *, uint64_t);
lattice_verify_usercode(struct lattice_pld_device *, uint32_t, uint32_t, uint32_t);
lattice_verify_status_register_u32(struct lattice_pld_device *, uint32_t, uint32_t, uint32_t, bool);
lattice_verify_status_register_u64(struct lattice_pld_device *, uint64_t, uint64_t, uint64_t);
lattice_preload(struct lattice_pld_device *);
Files
loading...
SourceVuDevelopment ToolsOpenOCDsrc/pld/lattice.h
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/* SPDX-License-Identifier: GPL-2.0-or-later */ /*************************************************************************** * Copyright (C) 2022 by Daniel Anselmi * * danselmi@gmx.ch * ***************************************************************************//* ... */ #ifndef OPENOCD_PLD_LATTICE_H #define OPENOCD_PLD_LATTICE_H #include <jtag/jtag.h> #include "pld.h" #include "lattice_bit.h" #define BYPASS 0xFF struct lattice_pld_device { struct jtag_tap *tap; size_t preload_length; enum lattice_family_e family; ...}; int lattice_set_instr(struct jtag_tap *tap, uint8_t new_instr, tap_state_t endstate); int lattice_read_u32_register(struct jtag_tap *tap, uint8_t cmd, uint32_t *in_val, uint32_t out_val, bool do_idle); int lattice_read_u64_register(struct jtag_tap *tap, uint8_t cmd, uint64_t *in_val, uint64_t out_val); int lattice_verify_usercode(struct lattice_pld_device *lattice_device, uint32_t out, uint32_t expected, uint32_t mask); int lattice_verify_status_register_u32(struct lattice_pld_device *lattice_device, uint32_t out, uint32_t expected, uint32_t mask, bool do_idle); int lattice_verify_status_register_u64(struct lattice_pld_device *lattice_device, uint64_t out, uint64_t expected, uint64_t mask); int lattice_preload(struct lattice_pld_device *lattice_device); /* ... */ #endif /* OPENOCD_PLD_LATTICE_H */
Details
Show:
from
Types: Columns:
Click anywhere in the source to view detailed information here...