HiveMind
Functions | Variables
BittyBuzzSystem Namespace Reference

Namespace to help manage the bittybuzz system. More...

Functions

void functionCall (uint16_t stringId)
 Call a bittybuzz function that takes not arguments (init, step, etc),. More...
 
void errorReceiver (bbzvm_error errcode)
 Callback to handle errors on bittybuzz vm. More...
 
void logVmDump (LogLevel logLevel)
 Logs the vm dump which contains information about the vm state, heap, stack, etc. More...
 
const char * getStateString (bbzvm_state state)
 
const char * getErrorString (bbzvm_error error)
 
const char * getInstructionString (bbzvm_instr instruction)
 

Variables

IUserInterfaceg_ui = NULL
 UserInterface used by the bbvm for printing user logs. More...
 
ILoggerg_logger = NULL
 Logger used for error reception or user functions. More...
 
const IBittyBuzzStringResolverg_stringResolver = NULL
 String resolver used for user functions. More...
 
IBittyBuzzClosureRegisterg_closureRegister = NULL
 Function register used by the BBVM to register new functions. More...
 
IBittyBuzzMessageServiceg_messageService = NULL
 Message service used by the BBVM to send requests to host and remote. More...
 
IBSPg_bsp = NULL
 BSP used by the bbvm for random numbers. More...
 
IUserUIg_userUI
 User interface (LED, Hex display, etc) available to the user via buzz. More...
 

Detailed Description

Namespace to help manage the bittybuzz system.

Function Documentation

◆ errorReceiver()

void BittyBuzzSystem::errorReceiver ( bbzvm_error  errcode)

Callback to handle errors on bittybuzz vm.

Parameters
[in]errcodethe error code of the received error
Here is the call graph for this function:
Here is the caller graph for this function:

◆ functionCall()

void BittyBuzzSystem::functionCall ( uint16_t  stringId)

Call a bittybuzz function that takes not arguments (init, step, etc),.

Parameters
[in]stringIdthe string ID of the function
Here is the caller graph for this function:

◆ getErrorString()

const char * BittyBuzzSystem::getErrorString ( bbzvm_error  error)
Here is the caller graph for this function:

◆ getInstructionString()

const char * BittyBuzzSystem::getInstructionString ( bbzvm_instr  instruction)
Here is the caller graph for this function:

◆ getStateString()

const char * BittyBuzzSystem::getStateString ( bbzvm_state  state)
Here is the caller graph for this function:

◆ logVmDump()

void BittyBuzzSystem::logVmDump ( LogLevel  logLevel)

Logs the vm dump which contains information about the vm state, heap, stack, etc.

Parameters
[in]logLevelthe log level
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ g_bsp

IBSP * BittyBuzzSystem::g_bsp = NULL

BSP used by the bbvm for random numbers.

◆ g_closureRegister

IBittyBuzzClosureRegister * BittyBuzzSystem::g_closureRegister = NULL

Function register used by the BBVM to register new functions.

◆ g_logger

ILogger * BittyBuzzSystem::g_logger = NULL

Logger used for error reception or user functions.

◆ g_messageService

IBittyBuzzMessageService * BittyBuzzSystem::g_messageService = NULL

Message service used by the BBVM to send requests to host and remote.

◆ g_stringResolver

const IBittyBuzzStringResolver * BittyBuzzSystem::g_stringResolver = NULL

String resolver used for user functions.

◆ g_ui

IUserInterface * BittyBuzzSystem::g_ui = NULL

UserInterface used by the bbvm for printing user logs.

◆ g_userUI

IUserUI * BittyBuzzSystem::g_userUI

User interface (LED, Hex display, etc) available to the user via buzz.