Select one of the symbols to view example projects that use it.
 
Outline
#define OPENOCD_PLD_LATTICE_BIT_H
#include "helper/types.h"
#include "raw_bit.h"
lattice_bit_file
lattice_family_e
lattice_read_file(struct lattice_bit_file *, const char *, enum lattice_family_e);
Files
loading...
CodeScopeDevelopment ToolsOpenOCDsrc/pld/lattice_bit.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
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/* SPDX-License-Identifier: GPL-2.0-or-later */ /*************************************************************************** * Copyright (C) 2022 by Daniel Anselmi * * danselmi@gmx.ch * ***************************************************************************//* ... */ #ifndef OPENOCD_PLD_LATTICE_BIT_H #define OPENOCD_PLD_LATTICE_BIT_H #include "helper/types.h" #include "raw_bit.h" struct lattice_bit_file { struct raw_bit_file raw_bit; size_t offset; uint32_t idcode; const char *part; /* reuses memory in raw_bit_file */ bool has_id; ...}; enum lattice_family_e { LATTICE_ECP2, LATTICE_ECP3, LATTICE_ECP5, LATTICE_CERTUS, LATTICE_UNKNOWN, ...}; int lattice_read_file(struct lattice_bit_file *bit_file, const char *filename, enum lattice_family_e family); /* ... */ #endif /* OPENOCD_PLD_LATTICE_BIT_H */