OpenOCD
raw_bit.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
3 /***************************************************************************
4  * Copyright (C) 2022 by Daniel Anselmi *
5  * danselmi@gmx.ch *
6  ***************************************************************************/
7 
8 #ifndef OPENOCD_PLD_RAW_BIN_H
9 #define OPENOCD_PLD_RAW_BIN_H
10 
11 #include <stddef.h>
12 #include <stdint.h>
13 
14 struct raw_bit_file {
15  size_t length;
16  uint8_t *data;
17 };
18 
19 int cpld_read_raw_bit_file(struct raw_bit_file *bit_file, const char *filename);
20 
21 #endif /* OPENOCD_PLD_RAW_BIN_H */
int cpld_read_raw_bit_file(struct raw_bit_file *bit_file, const char *filename)
Definition: raw_bit.c:19
uint8_t * data
Definition: raw_bit.h:16
size_t length
Definition: raw_bit.h:15