muteki
Loading...
Searching...
No Matches
utils.h
Go to the documentation of this file.
1/*
2 * Copyright 2021-present dogtopus
3 * SPDX-License-Identifier: MIT
4 */
5
12#ifndef __MUTEKI_UTILS_H__
13#define __MUTEKI_UTILS_H__
14
15#include <muteki/common.h>
16#include <muteki/ui/canvas.h>
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
36
44extern bool WarningBeep(void);
45
59extern void WriteComDebugMsg(char *format, ...) SYS_IS_PRINTF(1, 2);
60
61#ifdef __cplusplus
62} // extern "C"
63#endif
64
65#endif // __MUTEKI_UTILS_H__
Display canvas (LCD) API.
Common include file for all muteki-shims headers.
#define SYS_IS_PRINTF(arg_index_str, arg_index_fmt)
Attribute for opting a function in for printf static checking.
Definition common.h:92
Descriptor of an LCD drawing surface or hardware framebuffer.
Definition common.h:728
void WriteComDebugMsg(char *format,...) SYS_IS_PRINTF(1
Format and send a message to debug UART port.
bool WarningBeep(void)
Play a beep using the built in piezo speaker.
lcd_surface_t * GetActiveVRamAddress(void)
Get the descriptor of the currently active LCD surface.