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 
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 */
uint8_t * part_name
Definition: xilinx_bit.h:16
uint32_t length
Definition: xilinx_bit.h:19
uint8_t * source_file
Definition: xilinx_bit.h:15
uint8_t unknown_header[13]
Definition: xilinx_bit.h:14
uint8_t * date
Definition: xilinx_bit.h:17
uint8_t * time
Definition: xilinx_bit.h:18
uint8_t * data
Definition: xilinx_bit.h:20
void xilinx_free_bit_file(struct xilinx_bit_file *bit_file)
Definition: xilinx_bit.c:141
int xilinx_read_bit_file(struct xilinx_bit_file *bit_file, const char *filename)
Definition: xilinx_bit.c:60