Prusa MINI Firmware overview
|
Go to the documentation of this file.
2 #ifndef _MARLIN_CLIENT_H
3 #define _MARLIN_CLIENT_H
11 #define MARLIN_CFLG_STARTED 0x0001 // client started (set in marlin_client_init)
12 #define MARLIN_CFLG_PROCESS 0x0002 // loop processing in main thread is enabled
13 #define MARLIN_CFLG_BUSY 0x0004 // loop is busy
14 #define MARLIN_CFLG_LOWHIGH 0x0008 // receiving low/high part of client message
15 #define MARLIN_CFLG_MESSAGE 0x0010 // receiving status change message
178 #endif //MARLIN_CLIENT_H
bool seekSet(const uint32_t pos)
Definition: Marlin_CardReader.cpp:505
const uint8_t FAT_FILE_TYPE_NORMAL
Definition: SdBaseFile.h:81
#define MARLIN_MAX_CLIENTS
Definition: config.h:96
void marlin_gcode(const char *gcode)
Definition: marlin_client.c:195
int8_t readDir(dir_t *dir, char *longFilename)
Definition: Marlin_CardReader.cpp:459
const uint8_t O_APPEND
Definition: SdBaseFile.h:59
uint16_t flags
Definition: marlin_client.c:41
bool getDosName(char *const name)
Definition: Marlin_CardReader.cpp:440
uint8_t marlin_host_button_count(void)
Definition: marlin_client.c:528
uint8_t marlin_set_fan_speed(uint8_t val)
Definition: marlin_client.c:413
void marlin_print_resume(void)
Definition: marlin_client.c:491
float marlin_set_target_nozzle(float val)
Definition: marlin_client.c:401
const uint8_t FAT_FILE_TYPE_SUBDIR
Definition: SdBaseFile.h:84
const uint8_t DIR_ATT_HIDDEN
Definition: SdFatStructs.h:564
host_prompt_button_t marlin_host_button_type(uint8_t index)
Definition: marlin_client.c:535
const uint8_t FAT_FILE_TYPE_ROOT_FIXED
Definition: SdBaseFile.h:82
int marlin_wait_motion(uint32_t timeout)
Definition: marlin_client.c:187
#define MARLIN_ERR_MSK(e_id)
Definition: marlin_errors.h:13
uint32_t osMessageAvailableSpace(osMessageQId queue_id)
Get the available space in a message queue.
Definition: cmsis_os.c:1658
uint16_t lastWriteTime
Definition: SdFatStructs.h:522
variant8_t variant8_ui8(uint8_t ui8)
Definition: variant8.c:18
const char * marlin_vars_get_name(uint8_t var_id)
Definition: marlin_vars.c:36
int marlin_change(uint8_t var_id)
Definition: marlin_client.c:268
uint8_t marlin_set_wait_heat(uint8_t val)
Definition: marlin_client.c:425
uint32_t _wait_ack_from_server(uint8_t client_id)
Definition: marlin_client.c:601
void marlin_gcode_push_front(const char *gcode)
Definition: marlin_client.c:222
int marlin_event(uint8_t evt_id)
Definition: marlin_client.c:232
static void fname_from_8_3(char *fn, char *fn83)
Definition: Marlin_CardReader.cpp:418
int marlin_event_clr(uint8_t evt_id)
Definition: marlin_client.c:252
Base class for SdFile with Print and C++ streams.
Definition: SdBaseFile.h:166
FRESULT f_stat(const TCHAR *path, FILINFO *fno)
Definition: ff.c:4412
TaskHandle_t osThreadId
Definition: cmsis_os.h:283
#define DBG_VAR(...)
Definition: marlin_client.c:23
Access FAT16 and FAT32 volumes on SD and SDHC cards.
Definition: SdVolume.h:71
void marlin_park_head(void)
Definition: marlin_client.c:499
int32_t osSemaphoreWait(osSemaphoreId semaphore_id, uint32_t millisec)
Wait until a Semaphore token becomes available.
Definition: cmsis_os.c:822
GCodeQueue queue
Definition: queue.cpp:28
#define FA_WRITE
Definition: ff.h:327
variant8_t marlin_vars_get_var(marlin_vars_t *vars, uint8_t var_id)
Definition: marlin_vars.c:50
float marlin_set_target_bed(float val)
Definition: marlin_client.c:405
int marlin_busy(void)
Definition: marlin_client.c:152
int marlin_event(uint8_t evt_id)
Definition: marlin_client.c:232
list gcode
Definition: g29_auto.py:44
uint16_t ui16
Definition: variant8.h:34
BYTE fattrib
Definition: ff.h:201
#define MARLIN_VAR_FLOWFACT
Definition: marlin_vars.h:26
void marlin_print_pause(void)
Definition: marlin_client.c:483
uint8_t marlin_message_received(void)
Definition: marlin_client.c:507
int marlin_gcode_printf(const char *format,...)
Definition: marlin_client.c:206
Type type
Definition: Marlin_CardReader.cpp:38
#define MARLIN_VAR_MOTION
Definition: marlin_vars.h:8
int marlin_processing(void)
Definition: marlin_client.c:145
static SdFile newDir2
Definition: Marlin_CardReader.cpp:27
void marlin_print_resume(void)
Definition: marlin_client.c:491
#define pd
Definition: screen_filebrowser.cpp:39
FRESULT f_open(FIL *fp, const TCHAR *path, BYTE mode)
Definition: ff.c:3296
host_prompt_button_t button[HOST_PROMPT_MAX_BUTTONS]
Definition: marlin_host.h:49
void marlin_quick_stop(void)
Definition: marlin_client.c:467
host_prompt_type_t
Definition: marlin_host.h:17
osThreadId marlin_server_task
Definition: marlin_server.cpp:88
uint8_t ui8
Definition: variant8.h:36
#define MARLIN_VAR_FANSPEED
Definition: marlin_vars.h:24
void marlin_client_shdn(void)
Definition: marlin_client.c:114
uint64_t marlin_events(void)
Definition: marlin_client.c:263
FIL file
Definition: Marlin_CardReader.cpp:41
float marlin_set_z_offset(float val)
Definition: marlin_client.c:409
int marlin_processing(void)
Definition: marlin_client.c:145
#define LONG_FILENAME_LENGTH
Definition: cardreader.h:299
bool close()
Definition: Marlin_CardReader.cpp:535
WORD fdate
Definition: ff.h:199
uint64_t marlin_errors(void)
Definition: marlin_client.c:335
void marlin_do_babysteps_Z(float offs)
Definition: marlin_client.c:433
variant8_t marlin_get_var(uint8_t var_id)
Definition: marlin_client.c:340
Definition: marlin_events.h:102
uint8_t marlin_set_wait_heat(uint8_t val)
Definition: marlin_client.c:425
void marlin_gcode_push_front(const char *gcode)
Definition: marlin_client.c:222
int marlin_error(uint8_t err_id)
Definition: marlin_client.c:304
void marlin_vars_value_to_str(marlin_vars_t *vars, uint8_t var_id, char *str)
Definition: marlin_vars.c:183
const uint8_t DIR_NAME_DELETED
Definition: SdFatStructs.h:561
#define VARIANT8_USER
Definition: variant8.h:16
uint8_t i
Definition: screen_test_graph.c:72
uint8_t type
Definition: variant8.h:25
#define f_rewinddir(dp)
Definition: ff.h:282
int marlin_event_set(uint8_t evt_id)
Definition: marlin_client.c:241
#define MARLIN_VAR_TTEM_BED
Definition: marlin_vars.h:22
void marlin_stop_processing(void)
Definition: marlin_client.c:166
void marlin_client_shdn(void)
Definition: marlin_client.c:114
bool media_is_inserted()
Definition: Marlin_CardReader.cpp:17
FRESULT f_getdirpath(DIR *pd, TCHAR *buff, UINT len)
uint8_t reheating
Definition: marlin_client.c:51
DIR directory
Definition: Marlin_CardReader.cpp:42
host_prompt_type_t type
Definition: marlin_host.h:47
void marlin_do_babysteps_Z(float offs)
Definition: marlin_client.c:433
#define DBG_EVT
Definition: marlin_client.c:18
void marlin_client_loop(void)
Definition: marlin_client.c:118
DWORD FSIZE_t
Definition: ff.h:78
const char * marlin_events_get_name(uint8_t evt_id)
Definition: marlin_events.c:40
uint8_t marlin_message_received(void)
Definition: marlin_client.c:507
int marlin_change_set(uint8_t var_id)
Definition: marlin_client.c:277
#define FILENAME_LENGTH
Definition: SdFatConfig.h:103
uint32_t command
Definition: marlin_client.c:49
#define _slot_of(x)
Definition: Marlin_CardReader.cpp:83
const uint8_t O_WRITE
Definition: SdBaseFile.h:55
bool isOpen() const
Definition: SdBaseFile.h:277
#define SERIAL_ECHO_START()
Definition: serial.h:179
#define SERIAL_ECHOLN(x)
Definition: serial.h:72
Definition: marlin_host.h:46
uint8_t xc
Definition: marlin_events.h:104
#define MAX_DIR_DEPTH
Definition: window_file_list.h:35
static bool _media_inserted
Definition: Marlin_CardReader.cpp:15
void marlin_client_loop(void)
Definition: marlin_client.c:118
variant8_t marlin_set_var(uint8_t var_id, variant8_t val)
Definition: marlin_client.c:345
osThreadId osThreadGetId(void)
Return the thread ID of the current running thread.
Definition: cmsis_os.c:283
uint16_t usr16
Definition: variant8.h:27
void marlin_host_button_click(host_prompt_button_t button)
Definition: marlin_client.c:542
#define NULL
Definition: usbd_def.h:53
marlin_client_t marlin_client[MARLIN_MAX_CLIENTS]
Definition: marlin_client.c:62
int marlin_error_set(uint8_t err_id)
Definition: marlin_client.c:313
QueueHandle_t osMessageQId
Definition: cmsis_os.h:303
int marlin_error_clr(uint8_t err_id)
Definition: marlin_client.c:324
#define MARLIN_USR8_VAR_FLG
Definition: marlin_vars.h:59
EmergencyParser emergency_parser
#define MARLIN_CFLG_LOWHIGH
Definition: marlin_client.h:14
osEvent osMessageGet(osMessageQId queue_id, uint32_t millisec)
Get a Message or Wait for a Message from a Queue.
Definition: cmsis_os.c:1145
osStatus osDelay(uint32_t millisec)
Wait for Timeout (Time Delay)
Definition: cmsis_os.c:365
marlin_vars_t * marlin_update_vars(uint64_t msk)
Definition: marlin_client.c:368
void marlin_start_processing(void)
Definition: marlin_client.c:174
Definition: marlin_host.h:18
osMessageQId marlin_server_queue
Definition: marlin_server.cpp:89
int16_t read()
Definition: Marlin_CardReader.cpp:523
uint32_t HAL_GetTick(void)
Provides a tick value in millisecond.
Definition: stm32f4xx_hal.c:339
variant8_t variant8_ui16(uint16_t ui16)
Definition: variant8.c:30
SemaphoreHandle_t osSemaphoreId
Definition: cmsis_os.h:295
#define MARLIN_VAR_WAITUSER
Definition: marlin_vars.h:28
#define ZERO(a)
Definition: macros.h:201
#define MARLIN_EVT_Reheat
Definition: marlin_events.h:37
uint8_t marlin_get_gqueue(void)
Definition: marlin_client.c:381
void marlin_manage_heater(void)
Definition: marlin_client.c:459
Definition: Marlin_CardReader.cpp:31
marlin_vars_t * marlin_client_init(void)
Definition: marlin_client.c:84
#define MARLIN_USR8_MSK_ID
Definition: marlin_vars.h:60
Definition: cmsis_os.h:395
Definition: variant8.h:24
#define SERIAL_ECHO_MSG(S)
Definition: serial.h:183
#define PSTR(str)
Definition: pgmspace.h:31
uint64_t marlin_events(void)
Definition: marlin_client.c:263
#define DBG_REQ(...)
Definition: marlin_client.c:16
void marlin_host_prompt_decode(uint32_t ui32, marlin_host_prompt_t *prompt)
Definition: marlin_host.c:56
int marlin_motion(void)
Definition: marlin_client.c:182
Definition: marlin_host.h:26
uint16_t marlin_set_flow_factor(uint16_t val)
Definition: marlin_client.c:421
uint8_t marlin_get_gqueue(void)
Definition: marlin_client.c:381
float flt
Definition: variant8.h:31
static SdFile newDir1
Definition: Marlin_CardReader.cpp:27
variant8_t marlin_set_var(uint8_t var_id, variant8_t val)
Definition: marlin_client.c:345
marlin_vars_t * marlin_client_init(void)
Definition: marlin_client.c:84
host_prompt_button_t marlin_host_button_type(uint8_t index)
Definition: marlin_client.c:535
int marlin_wait_motion(uint32_t timeout)
Definition: marlin_client.c:187
#define FA_READ
Definition: ff.h:326
#define MARLIN_EVT_CommandEnd
Definition: marlin_events.h:34
uint8_t button_count
Definition: marlin_host.h:48
uint8_t marlin_get_pqueue(void)
Definition: marlin_client.c:391
int marlin_event_set(uint8_t evt_id)
Definition: marlin_client.c:241
marlin_vars_t * marlin_vars(void)
Definition: marlin_client.c:361
#define MARLIN_MAX_REQUEST
Definition: config.h:97
Definition: marlin_client.c:39
uint8_t marlin_set_wait_user(uint8_t val)
Definition: marlin_client.c:429
int marlin_reheating(void)
Definition: marlin_client.c:553
#define MARLIN_VAR_PQUEUE
Definition: marlin_vars.h:10
struct directoryEntry dir_t
Definition: SdFatStructs.h:557
void _process_client_message(marlin_client_t *client, variant8_t msg)
Definition: marlin_client.c:612
#define MARLIN_EVT_StopProcessing
Definition: marlin_events.h:29
static bool isInserted()
Definition: Marlin_CardReader.cpp:629
uint64_t marlin_changes(void)
Definition: marlin_client.c:299
#define MARLIN_EVT_CommandBegin
Definition: marlin_events.h:33
osThreadId marlin_client_task[MARLIN_MAX_CLIENTS]
Definition: marlin_client.c:59
#define MARLIN_VAR_GQUEUE
Definition: marlin_vars.h:9
osStatus osMessagePut(osMessageQId queue_id, uint32_t info, uint32_t millisec)
Put a Message to a Queue.
Definition: cmsis_os.c:1113
int marlin_change_set(uint8_t var_id)
Definition: marlin_client.c:277
#define f_size(fp)
Definition: ff.h:280
WORD ftime
Definition: ff.h:200
uint16_t lastWriteDate
Definition: SdFatStructs.h:523
FRESULT f_opendir(DIR *dp, const TCHAR *path)
Definition: ff.c:4221
int marlin_all_axes_known(void)
Definition: marlin_server.cpp:377
function completed; message event occurred.
Definition: cmsis_os.h:237
#define MARLIN_EVT_Message
Definition: marlin_events.h:36
marlin_vars_t * marlin_vars(void)
Definition: marlin_client.c:361
uint8_t name[11]
Definition: SdFatStructs.h:486
Type
Definition: Marlin_CardReader.cpp:33
void marlin_manage_heater(void)
Definition: marlin_client.c:459
int marlin_busy(void)
Definition: marlin_client.c:152
#define MARLIN_VAR_WAITHEAT
Definition: marlin_vars.h:27
static FORCE_INLINE void disable()
Definition: emergency_parser.h:75
void marlin_vars_set_var(marlin_vars_t *vars, uint8_t var_id, variant8_t var)
Definition: marlin_vars.c:105
void marlin_host_button_click(host_prompt_button_t button)
Definition: marlin_client.c:542
#define SERIAL_ECHOPGM(S)
Definition: serial.h:173
#define MSG_SD_OPEN_FILE_FAIL
Definition: language.h:229
SdBaseFile with Print.
Definition: SdFile.h:45
int marlin_error_set(uint8_t err_id)
Definition: marlin_client.c:313
#define DBG
Definition: Marlin_CardReader.cpp:9
uint8_t marlin_get_gqueue_max(void)
Definition: marlin_client.c:385
#define _MAX_LFN
Definition: ffconf.h:150
#define MARLIN_CFLG_STARTED
Definition: marlin_client.h:11
marlin_client_t * _client_ptr(void)
Definition: marlin_client.c:703
uint64_t events
Definition: marlin_client.c:42
#define osWaitForever
wait forever timeout value
Definition: cmsis_os.h:230
#define MARLIN_CFLG_BUSY
Definition: marlin_client.h:13
int marlin_error_clr(uint8_t err_id)
Definition: marlin_client.c:324
uint64_t errors
Definition: marlin_client.c:47
const uint8_t O_TRUNC
Definition: SdBaseFile.h:61
void marlin_settings_load(void)
Definition: marlin_client.c:451
FRESULT f_lseek(FIL *fp, FSIZE_t ofs)
Definition: ff.c:4060
#define SERIAL_ECHOLNPAIR(V...)
Definition: serial.h:144
void marlin_gcode(const char *gcode)
Definition: marlin_client.c:195
host_prompt_button_t
Definition: marlin_host.h:25
void marlin_quick_stop(void)
Definition: marlin_client.c:467
static void free(Slot *slot)
Definition: Marlin_CardReader.cpp:62
marlin_vars_t * marlin_update_vars(uint64_t msk)
Definition: marlin_client.c:368
#define MARLIN_EVT_MeshUpdate
Definition: marlin_events.h:24
uint8_t attributes
Definition: SdFatStructs.h:494
void media_set_inserted(bool inserted)
Definition: Marlin_CardReader.cpp:21
static void free_all()
Definition: Marlin_CardReader.cpp:65
uint8_t marlin_get_gqueue_max(void)
Definition: marlin_client.c:385
uint8_t marlin_set_wait_user(uint8_t val)
Definition: marlin_client.c:429
int marlin_reheating(void)
Definition: marlin_client.c:553
uint64_t marlin_errors(void)
Definition: marlin_client.c:335
variant8_t variant8_empty(void)
Definition: variant8.c:10
#define MSG_SD_FILE_SELECTED
Definition: language.h:232
const uint8_t[]
Definition: 404_html.c:3
variant8_t marlin_get_var(uint8_t var_id)
Definition: marlin_client.c:340
TCHAR fname[13]
Definition: ff.h:206
float z[MARLIN_MAX_MESH_POINTS]
Definition: marlin_events.h:103
uint64_t marlin_changes(void)
Definition: marlin_client.c:299
#define MARLIN_VAR_MSK(v_id)
Definition: marlin_vars.h:35
void marlin_stop_processing(void)
Definition: marlin_client.c:166
marlin_host_prompt_t prompt
Definition: marlin_client.c:50
static void idle()
Definition: Marlin_CardReader.cpp:633
Raw access to SD and SDHC flash memory cards.
Definition: Sd2Card.h:93
uint16_t marlin_set_print_speed(uint16_t val)
Definition: marlin_client.c:417
int marlin_all_axes_homed(void)
Definition: marlin_server.cpp:373
const uint8_t FAT_FILE_TYPE_CLOSED
Definition: SdBaseFile.h:80
Slot()
Definition: Marlin_CardReader.cpp:45
int marlin_motion(void)
Definition: marlin_client.c:182
#define MARLIN_VAR_PRNSPEED
Definition: marlin_vars.h:25
#define MARLIN_EVT_HostPrompt
Definition: marlin_events.h:26
uint8_t marlin_get_pqueue_max(void)
Definition: marlin_client.c:395
uint16_t marlin_set_flow_factor(uint16_t val)
Definition: marlin_client.c:421
int marlin_change_clr(uint8_t var_id)
Definition: marlin_client.c:288
FRESULT
Definition: ff.h:214
static uint8_t DIR_IS_FILE_OR_SUBDIR(const dir_t *dir)
Definition: SdFatStructs.h:612
uint32_t marlin_command(void)
Definition: marlin_client.c:159
void _send_request_to_server(uint8_t client_id, const char *request)
Definition: marlin_client.c:570
#define AM_DIR
Definition: ff.h:354
uint8_t marlin_get_pqueue(void)
Definition: marlin_client.c:391
void marlin_park_head(void)
Definition: marlin_client.c:499
static int read(struct _reent *_r, void *pv, char *pc, int n)
Definition: gcode_file.cpp:9
void marlin_settings_load(void)
Definition: marlin_client.c:451
uint32_t ack
Definition: marlin_client.c:45
#define MAXPATHNAMELENGTH
Definition: screen_filebrowser.cpp:26
int marlin_change_clr(uint8_t var_id)
Definition: marlin_client.c:288
This file contains all the functions prototypes for the HAL module driver.
uint64_t changes
Definition: marlin_client.c:43
uint8_t yc
Definition: marlin_events.h:105
osSemaphoreId marlin_server_sema
Definition: marlin_server.cpp:90
uint8_t id
Definition: marlin_client.c:40
static status_t status
Definition: filament_sensor.c:37
marlin_vars_t vars
Definition: marlin_client.c:44
static char * createFilename(char *const buffer, const dir_t &p)
Get a DOS 8.3 filename in its useful form.
Definition: Marlin_CardReader.cpp:92
#define MARLIN_EVT_Ready
Definition: marlin_events.h:31
uint8_t marlin_clients
Definition: marlin_client.c:63
#define bsod(fmt,...)
Definition: bsod.h:20
void marlin_print_abort(void)
Definition: marlin_client.c:475
Definition: Marlin_CardReader.cpp:34
Definition: marlin_vars.h:77
#define MARLIN_EVT_StartProcessing
Definition: marlin_events.h:28
void marlin_start_processing(void)
Definition: marlin_client.c:174
void _wait_server_started(void)
Definition: marlin_client.c:564
unsigned char BYTE
Definition: onboard_sd.h:13
uint32_t fileSize
Definition: SdFatStructs.h:525
osMessageQId osMessageCreate(const osMessageQDef_t *queue_def, osThreadId thread_id)
Create and Initialize a Message Queue.
Definition: cmsis_os.c:1086
float marlin_set_z_offset(float val)
Definition: marlin_client.c:409
#define osMessageQ(name)
Access a Message Queue Definition.
Definition: cmsis_os.h:829
uint8_t usr8
Definition: variant8.h:26
void marlin_settings_save(void)
Definition: marlin_client.c:443
uint8_t marlin_host_button_count(void)
Definition: marlin_client.c:528
uint8_t marlin_set_fan_speed(uint8_t val)
Definition: marlin_client.c:413
#define MSG_SD_WRITE_TO_FILE
Definition: language.h:233
#define MARLIN_CMD_NONE
Definition: marlin_events.h:50
float marlin_set_target_nozzle(float val)
Definition: marlin_client.c:401
bool open(SdBaseFile *dirFile, uint16_t index, uint8_t oflag)
int marlin_error(uint8_t err_id)
Definition: marlin_client.c:304
void marlin_print_abort(void)
Definition: marlin_client.c:475
#define MARLIN_CFLG_MESSAGE
Definition: marlin_client.h:15
#define MARLIN_EVT_Error
Definition: marlin_events.h:32
uint32_t marlin_command(void)
Definition: marlin_client.c:159
#define MARLIN_EVT_MSK(e_id)
Definition: marlin_events.h:42
#define DBG_EVT_MSK
Definition: marlin_client.c:20
#define MARLIN_VAR_TTEM_NOZ
Definition: marlin_vars.h:21
union osEvent::@54 value
event value
FAT short directory entry.
Definition: SdFatStructs.h:479
void marlin_settings_save(void)
Definition: marlin_client.c:443
FRESULT f_closedir(DIR *dp)
Definition: ff.c:4291
static uint8_t DIR_IS_SUBDIR(const dir_t *dir)
Definition: SdFatStructs.h:602
uint32_t ui32
Definition: variant8.h:32
#define MARLIN_EVT_Busy
Definition: marlin_events.h:30
bool isRoot() const
Definition: SdBaseFile.h:287
#define MARLIN_EVT_Acknowledge
Definition: marlin_events.h:38
void serialprintPGM(PGM_P str)
Definition: serial.cpp:35
variant8_t variant8_flt(float flt)
Definition: variant8.c:48
#define MARLIN_CFLG_PROCESS
Definition: marlin_client.h:12
#define MSG_SD_FILE_OPENED
Definition: language.h:230
#define SERIAL_ECHOLNPGM(S)
Definition: serial.h:174
png_structrp int mode
Definition: png.h:1139
uint16_t marlin_set_print_speed(uint16_t val)
Definition: marlin_client.c:417
#define MSG_SD_SIZE
Definition: language.h:231
const uint8_t O_READ
Definition: SdBaseFile.h:53
uint16_t last_count
Definition: marlin_client.c:46
list b
Definition: createSpeedLookupTable.py:30
uint32_t v
message as 32-bit value
Definition: cmsis_os.h:398
uint8_t marlin_get_pqueue_max(void)
Definition: marlin_client.c:395
float marlin_set_target_bed(float val)
Definition: marlin_client.c:405
host_prompt_type_t marlin_host_prompt_type(void)
Definition: marlin_client.c:521
static Slot * allocate(Type type)
Definition: Marlin_CardReader.cpp:51
Header of cmsis_os.c A new set of APIs are added in addition to existing ones, these APIs are specifi...
void marlin_print_pause(void)
Definition: marlin_client.c:483
int marlin_gcode_printf(const char *format,...)
Definition: marlin_client.c:206
unsigned int UINT
Definition: onboard_sd.h:16
marlin_mesh_t mesh
Definition: marlin_client.c:48
const uint8_t DIR_NAME_FREE
Definition: SdFatStructs.h:562
FRESULT f_readdir(DIR *dp, FILINFO *fno)
Definition: ff.c:4324
FRESULT f_read(FIL *fp, void *buff, UINT btr, UINT *br)
Definition: ff.c:3499
FRESULT f_close(FIL *fp)
Definition: ff.c:3801
bool isDir() const
Definition: SdBaseFile.h:267
osMessageQId marlin_client_queue[MARLIN_MAX_CLIENTS]
Definition: marlin_client.c:60
struct _marlin_client_t marlin_client_t
int marlin_change(uint8_t var_id)
Definition: marlin_client.c:268
#define MARLIN_VAR_Z_OFFSET
Definition: marlin_vars.h:23
host_prompt_type_t marlin_host_prompt_type(void)
Definition: marlin_client.c:521
uint8_t motion
Definition: marlin_vars.h:78
int marlin_event_clr(uint8_t evt_id)
Definition: marlin_client.c:252
osStatus osSemaphoreRelease(osSemaphoreId semaphore_id)
Release a Semaphore token.
Definition: cmsis_os.c:862
Definition: Marlin_CardReader.cpp:35
FSIZE_t fsize
Definition: ff.h:198
#define osMessageQDef(name, queue_sz, type)
Create a Message Queue Definition.
Definition: cmsis_os.h:818
const uint8_t FAT_FILE_TYPE_ROOT32
Definition: SdBaseFile.h:83
const uint8_t O_CREAT
Definition: SdBaseFile.h:63