OpenOCD
xilinx_bit.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-or-later */
2
3
/***************************************************************************
4
* Copyright (C) 2006 by Dominic Rath *
5
* Dominic.Rath@gmx.de *
6
***************************************************************************/
7
8
#ifndef OPENOCD_PLD_XILINX_BIT_H
9
#define OPENOCD_PLD_XILINX_BIT_H
10
11
#include "
helper/types.h
"
12
13
struct
xilinx_bit_file
{
14
uint8_t
unknown_header
[13];
15
uint8_t *
source_file
;
16
uint8_t *
part_name
;
17
uint8_t *
date
;
18
uint8_t *
time
;
19
uint32_t
length
;
20
uint8_t *
data
;
21
};
22
23
int
xilinx_read_bit_file
(
struct
xilinx_bit_file
*bit_file,
const
char
*filename);
24
25
void
xilinx_free_bit_file
(
struct
xilinx_bit_file
*bit_file);
26
27
#endif
/* OPENOCD_PLD_XILINX_BIT_H */
xilinx_bit_file
Definition:
xilinx_bit.h:13
xilinx_bit_file::part_name
uint8_t * part_name
Definition:
xilinx_bit.h:16
xilinx_bit_file::length
uint32_t length
Definition:
xilinx_bit.h:19
xilinx_bit_file::source_file
uint8_t * source_file
Definition:
xilinx_bit.h:15
xilinx_bit_file::unknown_header
uint8_t unknown_header[13]
Definition:
xilinx_bit.h:14
xilinx_bit_file::date
uint8_t * date
Definition:
xilinx_bit.h:17
xilinx_bit_file::time
uint8_t * time
Definition:
xilinx_bit.h:18
xilinx_bit_file::data
uint8_t * data
Definition:
xilinx_bit.h:20
types.h
xilinx_free_bit_file
void xilinx_free_bit_file(struct xilinx_bit_file *bit_file)
Definition:
xilinx_bit.c:141
xilinx_read_bit_file
int xilinx_read_bit_file(struct xilinx_bit_file *bit_file, const char *filename)
Definition:
xilinx_bit.c:60
src
pld
xilinx_bit.h
Generated by
1.9.1