rcbench
Servo and ESC test bench: panel, IOmcu and shared C
Loading...
Searching...
No Matches
panel_sense.c File Reference

The current monitors' set-up on its way to the IOmcu: SETUP INTERFACES' INA228, bus and encoder rows and SETUP > SENSORS' INA3221 parts, published by the settings observer on app_main and taken by the control task; and the SENSE_MAP page's service there (sense_map_link.h), with what it tells the operator. More...

#include <math.h>
#include <stdatomic.h>
#include <stdio.h>
#include <string.h>
#include "freertos/FreeRTOS.h"
#include "link_host.h"
#include "link_pages.h"
#include "panel.h"
#include "log_cols.h"
#include "sense_link.h"
#include "sense_map_link.h"
#include "sense_win_link.h"
#include "settings.h"
#include "sensors_rows.h"
#include "settings_sensors.h"
#include "ui_text.h"

Functions

void publish_sense (void)
sense_setup_t sense_wanted (void)
static void map_alerts (void)
bool sense_log_cols (log_cols_t *out)
static void publish_held (void)
void sense_map_came_up (uint16_t minor)
void sense_map_lost (void)
void sense_map_service (bool idle)
void sense_win_service (void)
void sense_win_attach (bench_state_t *b, bool ring)

Variables

static portMUX_TYPE s_sense_mux = portMUX_INITIALIZER_UNLOCKED
static sense_setup_t s_sense_want
static sense_map_want_t s_map_want
static uint8_t s_map_mirror = 0xFFu
sense_map_link_t s_sense_map
atomic_uint s_sense_parts
static uint32_t s_map_alert_gen
static uint8_t s_map_alert_ev
static uint8_t s_map_alert_part
static uint32_t s_map_setup_gen
static uint8_t s_map_setup_ev
static uint8_t s_map_setup_part
static sense_win_link_t s_sense_win
static log_cols_t s_cols
static bool s_cols_map

Detailed Description

The current monitors' set-up on its way to the IOmcu: SETUP INTERFACES' INA228, bus and encoder rows and SETUP > SENSORS' INA3221 parts, published by the settings observer on app_main and taken by the control task; and the SENSE_MAP page's service there (sense_map_link.h), with what it tells the operator.

SPDX-License-Identifier: MIT