Functions | |
| BaseType_t | xQueueSendOverwriteOldest (QueueHandle_t xQueue, void const *pvItemToQueue) |
| Send item to queue (even if full). | |
| std::span< uint8_t const > | read (std::span< uint8_t > stack) |
| Read conversion from to stack. | |
| esp_err_t | detect_revision (std::span< uint8_t > stack) |
| Detect hardware revision by measuring VCC channel. | |
| template<ztl::fixed_string revision> | |
| size_t | parse (std::span< uint8_t const > conversion_frame, FilteredCurrent &filtered_current) |
| Parse conversion frame. | |
| void | detect_short_circuit (uint8_t short_circuit_count) |
| Detect short circuits. | |
| esp_err_t drv::anlg::anonymous_namespace{adc_task_function.cpp}::detect_revision | ( | std::span< uint8_t > | stack | ) |
| stack | Stack |
| ESP_OK | Success |
| void drv::anlg::anonymous_namespace{adc_task_function.cpp}::detect_short_circuit | ( | uint8_t | short_circuit_count | ) |
| short_circuit_count | Number of current samples indicating short circuit |
| size_t drv::anlg::anonymous_namespace{adc_task_function.cpp}::parse | ( | std::span< uint8_t const > | conversion_frame, |
| FilteredCurrent & | filtered_current ) |
| revision | Hardware revision |
| conversion_frame | Conversion frame |
| filtered_current | Filtered current |
| std::span< uint8_t const > drv::anlg::anonymous_namespace{adc_task_function.cpp}::read | ( | std::span< uint8_t > | stack | ) |
| stack | Stack |
| BaseType_t drv::anlg::anonymous_namespace{adc_task_function.cpp}::xQueueSendOverwriteOldest | ( | QueueHandle_t | xQueue, |
| void const * | pvItemToQueue ) |
Small FreeRTOS-style helper to post an item on a queue. As long as there is still space in the queue, the element is inserted at the end; when the queue is full, the oldest element is removed first.
| xQueue | Queue handle |
| pvItemToQueue | Pointer to the item |
| pdPASS | Success |
| errQUEUE_FULL | Error |