VMUPro SDK v1.0.0
Application Development SDK for the VMUPro
Loading...
Searching...
No Matches
vmupro_utils.h
Go to the documentation of this file.
1
15#pragma once
16
17#include "stdint.h"
18#include "stdbool.h"
19#include <stddef.h>
20
21#ifdef __cplusplus
22extern "C"
23{
24#endif
25
39void vmupro_sleep_ms(uint32_t milliseconds);
40
64uint64_t vmupro_get_time_us(void);
65
96void vmupro_delay_us(uint64_t delay_us);
97
121void vmupro_delay_ms(uint64_t delay_ms);
122
146int vmupro_snprintf(char* buffer, size_t size, const char* format, ...);
147
170void* vmupro_malloc(size_t size);
171
179typedef struct {
180 const char* title;
181 const char* rootPath;
182 const char* filterExtension;
184
209
236
237#ifdef __cplusplus
238}
239#endif
Settings structure for the emulator browser.
void vmupro_delay_ms(uint64_t delay_ms)
Delay for a specified number of milliseconds.
void vmupro_sleep_ms(uint32_t milliseconds)
Sleep for a specified number of milliseconds.
int vmupro_emubrowser_init(vmupro_emubrowser_settings_t settings)
Initialize the emulator browser.
void vmupro_emubrowser_render_contents(char *launchfile)
Render the emulator browser and get selected file.
uint64_t vmupro_get_time_us(void)
Get current time in microseconds.
void * vmupro_malloc(size_t size)
Memory allocation with SPIRAM preference.
void vmupro_delay_us(uint64_t delay_us)
Delay for a specified number of microseconds.
int vmupro_snprintf(char *buffer, size_t size, const char *format,...)
Safe string formatting function.