BT8XX Emulator Library. More...
#include "bt8xxemu_inttypes.h"
Go to the source code of this file.
Data Structures | |
struct | BT8XXEMU_EmulatorParameters |
struct | BT8XXEMU_FlashParameters |
Macros | |
#define | EVE_TCHAR_DEFINED |
#define | BT8XXEMU_VERSION_API 12 |
#define | BT8XXEMU_API |
Typedefs | |
typedef char | eve_tchar_t |
typedef void | BT8XXEMU_Emulator |
typedef void | BT8XXEMU_Flash |
BT8XX Emulator Library.
MIT License
Copyright (c) [2019] [Bridgetek Pte Ltd (BRTChip)]
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Definition in file bt8xxemu.h.
#define BT8XXEMU_API |
Definition at line 73 of file bt8xxemu.h.
#define BT8XXEMU_VERSION_API 12 |
Definition at line 52 of file bt8xxemu.h.
#define EVE_TCHAR_DEFINED |
Definition at line 43 of file bt8xxemu.h.
typedef void BT8XXEMU_Emulator |
Definition at line 98 of file bt8xxemu.h.
typedef void BT8XXEMU_Flash |
Definition at line 99 of file bt8xxemu.h.
typedef char eve_tchar_t |
Definition at line 47 of file bt8xxemu.h.
Definition at line 128 of file bt8xxemu.h.
Definition at line 110 of file bt8xxemu.h.
enum BT8XXEMU_FrameFlags |
Definition at line 168 of file bt8xxemu.h.
enum BT8XXEMU_LogType |
Enumerator | |
---|---|
BT8XXEMU_LogError | 0 |
BT8XXEMU_LogWarning | 1 |
BT8XXEMU_LogMessage | 2 |
Definition at line 103 of file bt8xxemu.h.
|
extern |
Set chip select. Must be set to 1 to start data transfer, 0 to end. See FT8XX documentation for CS_N
|
extern |
Initialize the default emulator parameters
|
extern |
Destroy the emulator. Calls BT8XXEMU_stop implicitly. Emulator must be destroyed before process exits.
|
extern |
Create flash emulator instance
|
extern |
Initialize the default flash emulator parameters
|
extern |
Destroy flash emulator instance
|
extern |
Transfer data using SPI or Quad SPI protocol. Bit 0:3 are data, bit 4 is cable select (0 active), SCK is clock. In single mode bit 0 is MOSI and bit 1 is MISO
|
extern |
Returns 1 if there is an interrupt flag set. Depends on mask. See FT8XX documentation for INT_N
|
extern |
Poll if the emulator is still running. Returns 0 when the output window has been closed, or when the emulator has been stopped.
|
extern |
Run the emulator on the current thread. Returns when the emulator is fully stopped when a Main function is supplied, returns when the emulator is fully started otherwise. Parameter versionApi must be set to BT8XXEMU_VERSION_API
|
extern |
Set a single emulation flag on or off. Only PWM and HSF options can be changed at runtime. Returns the value of the flag after the operation
|
extern |
Stop the emulator. Can be called from any thread. Returns when the emulator has fully stopped. Safe to call multiple times.
|
extern |
Reset touch XY. Call once no longer touching when using custom graphics output
|
extern |
Set touch XY. Param idx 0..4. Call on every frame during mouse down or touch when using custom graphics output
|
extern |
Transfer data over the imaginary SPI bus. Call from the MCU thread (from the setup/loop callbacks). See FT8XX documentation for SPI transfer protocol
|
extern |
Return version information