#include <stdlib.h>#include <string.h>#include "hal.h"#include "protocol.h"#include "state_machine.h"Data Structures | |
| struct | stream_state_t |
| union | stream_connection_flags_t |
| struct | stream_connection |
| struct | connection_t |
Typedefs | |
| typedef struct stream_connection | stream_connection_t |
Functions | |
| void | stream_register_streams (io_stream_details_t *details) |
| bool | stream_enumerate_streams (stream_enumerate_callback_ptr callback, void *data) |
| bool | stream_tx_blocking (void) |
| int32_t | stream_get_null (void) |
| Dummy function for reading data from a virtual empty input buffer. More... | |
| const io_stream_status_t * | stream_get_uart_status (uint8_t instance) |
| stream_suspend_state_t | stream_is_rx_suspended (void) |
| bool | stream_rx_suspend (stream_rx_buffer_t *rxbuffer, bool suspend) |
| Function for blocking reads from or restoring an input buffer. More... | |
| ISR_CODE bool ISR_FUNC() | stream_buffer_all (uint8_t c) |
| ISR_CODE bool ISR_FUNC() | stream_enqueue_realtime_command (uint8_t c) |
| bool | stream_connected (void) |
| const io_stream_t * | stream_get_base (void) |
| io_stream_flags_t | stream_get_flags (io_stream_t stream) |
| bool | stream_set_description (const io_stream_t *stream, const char *description) |
| bool | stream_connect (const io_stream_t *stream) |
| bool | stream_connect_instance (uint8_t instance, uint32_t baud_rate) |
| void | stream_disconnect (const io_stream_t *stream) |
| io_stream_t const * | stream_open_instance (uint8_t instance, uint32_t baud_rate, stream_write_char_ptr rx_handler, const char *description) |
| bool | stream_close (io_stream_t const *stream) |
| void | stream_set_defaults (const io_stream_t *stream, uint32_t baud_rate) |
| void | stream_mpg_set_mode (void *data) |
| ISR_CODE bool ISR_FUNC() | stream_mpg_check_enable (uint8_t c) |
| bool | stream_mpg_register (const io_stream_t *stream, bool rx_only, stream_write_char_ptr write_char) |
| bool | stream_mpg_enable (bool on) |
| Function for enabling/disabling input from a secondary input stream. More... | |
| const io_stream_t * | stream_null_init (uint32_t baud_rate) |
| void | debug_printf (const char *fmt,...) |
| typedef struct stream_connection stream_connection_t |
| void debug_printf | ( | const char * | fmt, |
| ... | |||
| ) |
| ISR_CODE bool ISR_FUNC() stream_buffer_all | ( | uint8_t | c | ) |
| bool stream_close | ( | io_stream_t const * | stream | ) |
| bool stream_connect | ( | const io_stream_t * | stream | ) |
| bool stream_connect_instance | ( | uint8_t | instance, |
| uint32_t | baud_rate | ||
| ) |
| bool stream_connected | ( | void | ) |
| void stream_disconnect | ( | const io_stream_t * | stream | ) |
| ISR_CODE bool ISR_FUNC() stream_enqueue_realtime_command | ( | uint8_t | c | ) |
| bool stream_enumerate_streams | ( | stream_enumerate_callback_ptr | callback, |
| void * | data | ||
| ) |
| const io_stream_t* stream_get_base | ( | void | ) |
| io_stream_flags_t stream_get_flags | ( | io_stream_t | stream | ) |
| int32_t stream_get_null | ( | void | ) |
Dummy function for reading data from a virtual empty input buffer.
| const io_stream_status_t* stream_get_uart_status | ( | uint8_t | instance | ) |
| stream_suspend_state_t stream_is_rx_suspended | ( | void | ) |
| ISR_CODE bool ISR_FUNC() stream_mpg_check_enable | ( | uint8_t | c | ) |
| bool stream_mpg_enable | ( | bool | on | ) |
Function for enabling/disabling input from a secondary input stream.
| on | true if switching input to mpg stream, false when restoring original input. |
| bool stream_mpg_register | ( | const io_stream_t * | stream, |
| bool | rx_only, | ||
| stream_write_char_ptr | write_char | ||
| ) |
| void stream_mpg_set_mode | ( | void * | data | ) |
| const io_stream_t* stream_null_init | ( | uint32_t | baud_rate | ) |
| io_stream_t const* stream_open_instance | ( | uint8_t | instance, |
| uint32_t | baud_rate, | ||
| stream_write_char_ptr | rx_handler, | ||
| const char * | description | ||
| ) |
| void stream_register_streams | ( | io_stream_details_t * | details | ) |
| bool stream_rx_suspend | ( | stream_rx_buffer_t * | rxbuffer, |
| bool | suspend | ||
| ) |
Function for blocking reads from or restoring an input buffer.
| rxbuffer | pointer to a stream_rx_buffer_t. |
| suspend | when true hal.stream.read is changed to stream_get_null(), if false it is restored if already saved. |
| void stream_set_defaults | ( | const io_stream_t * | stream, |
| uint32_t | baud_rate | ||
| ) |
| bool stream_set_description | ( | const io_stream_t * | stream, |
| const char * | description | ||
| ) |
| bool stream_tx_blocking | ( | void | ) |
| on_gcode_mode_changed_ptr on_gcode_mode_changed |
| on_rt_reports_added_ptr on_rt_reports_added |
| stream_write_char_ptr write_char |