SBB Micro
Source code for the self-balancing-bike microcontroller unit (Teensy 4.1-based). 🚀️
Loading...
Searching...
No Matches
prototypes.h File Reference

Declaration of prototypes. More...

Go to the source code of this file.

Functions

float tempmonGetTemp (void)
 Get the CPU temperature.
 
uint32_t set_arm_clock (uint32_t frequency)
 Set the CPU clock.
 
void start_IObus (void)
 Initialize the IO buses.
 
void set_IObus (void)
 Start the IO buses.
 
void do_zeros (void)
 Perform the zero.
 
void set_GPIO (void)
 Set the GPIO.
 
void start_brake_stepper (void)
 Start the brake stepper motor.
 
void get_sensors (void)
 Get sensor readings.
 
void set_ctrl_input (void)
 Set the control inputs.
 
void do_control (void)
 Update the control loop.
 
void check_error (void)
 Check for errors.
 
bool check_sbus (void)
 Check for SBUS.
 
void set_driver (void)
 Set the drivers.
 
int8_t get_selector (void)
 Get the selector.
 
bool get_enable (void)
 Get the enable.
 
void turnoff_callback (void)
 Callback for tuning off.
 
boolean check_voltage (void)
 Check the battery voltage.
 
time_t getTime ()
 Get internal RTC time.
 
void do_led ()
 Management of the status LED.
 
void serial_flush ()
 Flush the UARTs.
 
void set_ctrl_param ()
 Set custom control parameters.
 
void update_tet (uint32_t t0)
 Update task execution time.
 
void print_report (int mode)
 Print the report.
 
void start_logger (void)
 Initialize the logger.
 
void log_closer (void)
 Close the log file.
 
void do_logger (void)
 Log signals.
 
bool check_mtp (void)
 Check for MTP mode.
 
void do_mtp (void)
 Run MTP mode.
 
void start_debug (void)
 Initialize the debug.
 
void do_debug (void)
 Stream and receive signals.
 

Detailed Description

Declaration of prototypes.

File for the declaration of all function prototypes. Function definitions are in main.cpp, logger.h, sbbmtp.h, userfun.h, debug.h.

See also
main.cpp logger.h sbbmtp.h userfun.h debug.h