pio_disassembler.h 537 B

1234567891011121314151617181920212223
  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. #include <cstdint>
  11. typedef unsigned int uint;
  12. std::string disassemble(uint16_t inst, uint sideset_bits, bool sideset_opt);
  13. extern "C" void disassemble(char *buf, int buf_len, uint16_t inst, uint sideset_bits, bool sideset_opt);
  14. #else
  15. void disassemble(char *buf, int buf_len, uint inst, uint sideset_bits, bool sideset_opt);
  16. #endif
  17. #endif