mirror of
https://github.com/grblHAL/core.git
synced 2026-02-06 00:52:35 +08:00
Some low-level ioport improvements, added definition for virtual pins/ports. Deprecated direct access to number of the different ioport ports in hal.port struct, use ioports_unclaimed() instead.
31 lines
1.0 KiB
C
31 lines
1.0 KiB
C
/*
|
|
stream_file.h - stream redirector for file input
|
|
|
|
Part of grblHAL
|
|
|
|
Copyright (c) 2024-2025 Terje Io
|
|
|
|
grblHAL 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.
|
|
|
|
grblHAL 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 grblHAL. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "vfs.h"
|
|
#include "core_handlers.h"
|
|
|
|
bool stream_is_file (void);
|
|
void stream_redirect_close (vfs_file_t *file);
|
|
void stream_set_type (stream_type_t type, vfs_file_t *file);
|
|
vfs_file_t *stream_redirect_read (char *filename, status_message_ptr status_handler, on_file_end_ptr eof_handler);
|