Go to the documentation of this file. 1 #ifndef __BITTYBUZZSYSTEM_H_
2 #define __BITTYBUZZSYSTEM_H_
83 #endif // __BITTYBUZZSYSTEM_H_
IBittyBuzzClosureRegister * g_closureRegister
Function register used by the BBVM to register new functions.
Definition: BittyBuzzSystem.cpp:9
void logVmDump(LogLevel logLevel)
Logs the vm dump which contains information about the vm state, heap, stack, etc.
Definition: BittyBuzzSystem.cpp:65
A class to register buzz function/closures id and associate them with a string.
Definition: IBittyBuzzClosureRegister.h:24
const char * getStateString(bbzvm_state state)
Definition: BittyBuzzSystem.cpp:143
void errorReceiver(bbzvm_error errcode)
Callback to handle errors on bittybuzz vm.
Definition: BittyBuzzSystem.cpp:29
const char * getErrorString(bbzvm_error error)
Definition: BittyBuzzSystem.cpp:160
IBittyBuzzMessageService * g_messageService
Message service used by the BBVM to send requests to host and remote.
Definition: BittyBuzzSystem.cpp:10
LogLevel
The log level used for the logger.
Definition: ILogger.h:9
Manages the UI available to the user.
Definition: IUserUI.h:7
ILogger * g_logger
Logger used for error reception or user functions.
Definition: BittyBuzzSystem.cpp:6
Class that resolves a string from the bittybuzz virtual machine.
Definition: IBittyBuzzStringResolver.h:10
Namespace to help manage the bittybuzz system.
Definition: BittyBuzzSystem.h:19
A logger class with basic logging capabilities.
Definition: ILogger.h:35
const IBittyBuzzStringResolver * g_stringResolver
String resolver used for user functions.
Definition: BittyBuzzSystem.cpp:8
void functionCall(uint16_t stringId)
Call a bittybuzz function that takes not arguments (init, step, etc),.
Definition: BittyBuzzSystem.cpp:17
IUserUI * g_userUI
User interface (LED, Hex display, etc) available to the user via buzz.
Definition: BittyBuzzSystem.cpp:12
message service use by the BBVM. Constructs the messages and dispatches it at the appropriate place (...
Definition: IBittyBuzzMessageService.h:9
IBSP * g_bsp
BSP used by the bbvm for random numbers.
Definition: BittyBuzzSystem.cpp:11
const char * getInstructionString(bbzvm_instr instruction)
Definition: BittyBuzzSystem.cpp:197
Manages the user interface The user interface can consist of buttons, LED, serial print ports,...
Definition: IUserInterface.h:36
IUserInterface * g_ui
UserInterface used by the bbvm for printing user logs.
Definition: BittyBuzzSystem.cpp:7