pio_disassembler.h 518 B

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