2022-01-13 05:50:19 -08:00
|
|
|
/*
|
|
|
|
Copyright 2022 Benjamin Vedder benjamin@vedder.se
|
|
|
|
Copyright 2022 Joel Svensson svenssonjoel@yahoo.se
|
|
|
|
|
|
|
|
This file is part of the VESC firmware.
|
|
|
|
|
|
|
|
The VESC firmware is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
The VESC firmware is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef LISPBM_LISPIF_H_
|
|
|
|
#define LISPBM_LISPIF_H_
|
|
|
|
|
2022-01-31 00:12:27 -08:00
|
|
|
#include <stdint.h>
|
|
|
|
#include <stdbool.h>
|
2022-11-04 11:46:36 -07:00
|
|
|
#include <stddef.h>
|
2022-01-31 00:12:27 -08:00
|
|
|
|
2022-01-13 05:50:19 -08:00
|
|
|
// Functions
|
|
|
|
void lispif_init(void);
|
2022-11-04 11:46:36 -07:00
|
|
|
void lispif_lock_lbm(void);
|
|
|
|
void lispif_unlock_lbm(void);
|
2022-07-25 05:26:21 -07:00
|
|
|
bool lispif_restart(bool print, bool load_code);
|
2022-02-03 08:31:02 -08:00
|
|
|
void lispif_disable_all_events(void);
|
2022-05-10 10:05:43 -07:00
|
|
|
void lispif_stop_lib(void);
|
2022-11-04 11:46:36 -07:00
|
|
|
void* lispif_malloc(size_t size);
|
|
|
|
void lispif_free(void *ptr);
|
2022-01-28 18:36:34 -08:00
|
|
|
void lispif_process_cmd(unsigned char *data, unsigned int len,
|
|
|
|
void(*reply_func)(unsigned char *data, unsigned int len));
|
2022-01-31 00:12:27 -08:00
|
|
|
void lispif_process_can(uint32_t can_id, uint8_t *data8, int len, bool is_ext);
|
2022-02-06 14:12:05 -08:00
|
|
|
void lispif_process_custom_app_data(unsigned char *data, unsigned int len);
|
2022-10-23 09:35:26 -07:00
|
|
|
void lispif_process_shutdown(void);
|
2022-04-20 08:16:52 -07:00
|
|
|
void lispif_set_ext_load_callback(void (*p_func)(void));
|
2022-01-13 05:50:19 -08:00
|
|
|
|
2022-02-23 13:56:30 -08:00
|
|
|
void lispif_load_vesc_extensions(void);
|
|
|
|
bool lispif_vesc_dynamic_loader(const char *str, const char **code);
|
|
|
|
|
2022-01-13 05:50:19 -08:00
|
|
|
#endif /* LISPBM_LISPIF_H_ */
|