1 /* 2 * Copyright (c) 2020 Raspberry Pi (Trading) Ltd. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7 #ifndef _PIO_DISASSEMBLER_H 8 #define _PIO_DISASSEMBLER_H 9 10 #ifdef __cplusplus 11 12 #include <string> 13 14 typedef unsigned int uint; 15 16 std::string disassemble(uint16_t inst, uint sideset_bits, bool sideset_opt); 17 extern "C" void disassemble(char *buf, int buf_len, uint16_t inst, uint sideset_bits, bool sideset_opt); 18 #else 19 void disassemble(char *buf, int buf_len, uint inst, uint sideset_bits, bool sideset_opt); 20 #endif 21 22 #endif