| | |
| | | #include "fifo_private.h" |
| | | |
| | | /* basic FIFO */ |
| | | static fifo_t local_error_queue; |
| | | static scpi_fifo_t local_error_queue; |
| | | |
| | | |
| | | |
| | |
| | | |
| | | /* basic FIFO */ |
| | | context->error_queue = (scpi_error_queue_t)&local_error_queue; |
| | | fifo_init((fifo_t *)context->error_queue); |
| | | fifo_init((scpi_fifo_t *)context->error_queue); |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | |
| | | /* basic FIFO */ |
| | | fifo_clear((fifo_t *)context->error_queue); |
| | | fifo_clear((scpi_fifo_t *)context->error_queue); |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | |
| | | /* basic FIFO */ |
| | | fifo_remove((fifo_t *)context->error_queue, &result); |
| | | fifo_remove((scpi_fifo_t *)context->error_queue, &result); |
| | | |
| | | return result; |
| | | } |
| | |
| | | */ |
| | | |
| | | /* basic FIFO */ |
| | | fifo_count((fifo_t *)context->error_queue, &result); |
| | | fifo_count((scpi_fifo_t *)context->error_queue, &result); |
| | | |
| | | return result; |
| | | } |
| | |
| | | */ |
| | | |
| | | /* basic FIFO */ |
| | | fifo_add((fifo_t *)context->error_queue, err); |
| | | fifo_add((scpi_fifo_t *)context->error_queue, err); |
| | | } |
| | | |
| | | struct error_reg { |