#include <stdlib.h>
#include <string.h>
#include "hal.h"
#include "nuts_bolts.h"
#include "nvs_buffer.h"
#include "override.h"
#include "state_machine.h"
#include "motion_control.h"
#include "sleep.h"
#include "protocol.h"
#include "machine_limits.h"
Data Structures | |
union | line_flags_t |
struct | delayed_task_t |
struct | realtime_queue_t |
Macros | |
#define | RT_QUEUE_SIZE 16 |
Functions | |
bool | protocol_enqueue_gcode (char *gcode) |
bool | protocol_main_loop (void) |
bool | protocol_buffer_synchronize (void) |
void | protocol_auto_cycle_start (void) |
bool | protocol_execute_realtime (void) |
bool | protocol_exec_rt_system (void) |
ISR_CODE bool ISR_FUNC() | protocol_enqueue_realtime_command (char c) |
ISR_CODE bool ISR_FUNC() | protocol_enqueue_foreground_task (fg_task_ptr fn, void *data) |
Enqueue a function to be called once by the foreground process. More... | |
ISR_CODE bool ISR_FUNC() | protocol_enqueue_rt_command (on_execute_realtime_ptr fn) |
Enqueue a function to be called once by the foreground process. More... | |
void | protocol_execute_noop (sys_state_t state) |
#define RT_QUEUE_SIZE 16 |
void protocol_auto_cycle_start | ( | void | ) |
bool protocol_buffer_synchronize | ( | void | ) |
ISR_CODE bool ISR_FUNC() protocol_enqueue_foreground_task | ( | fg_task_ptr | fn, |
void * | data | ||
) |
Enqueue a function to be called once by the foreground process.
fn | pointer to a foreground_task_ptr type of function. |
data | pointer to data to be passed to the callee. |
bool protocol_enqueue_gcode | ( | char * | gcode | ) |
ISR_CODE bool ISR_FUNC() protocol_enqueue_rt_command | ( | on_execute_realtime_ptr | fn | ) |
Enqueue a function to be called once by the foreground process.
fn | pointer to a on_execute_realtime_ptr type of function. |
bool protocol_exec_rt_system | ( | void | ) |
void protocol_execute_noop | ( | sys_state_t | state | ) |
bool protocol_execute_realtime | ( | void | ) |
bool protocol_main_loop | ( | void | ) |