OpenBIC
OpenSource Bridge-IC
plat_shell_e1s.c File Reference
#include <zephyr.h>
#include <sys/printk.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <shell/shell.h>
#include "sensor.h"
#include "plat_gpio.h"
#include "plat_sensor_table.h"
Include dependency graph for plat_shell_e1s.c:

Classes

struct  stress_e1s_pwr_s
 

Macros

#define MAX_E1S_NUMBER   16
 
#define E1S_POWER_CLOCK_PERIOD   2
 
#define E1S_POWER_AVG_PERIOD   250
 

Functions

void e1s_pwr_work_handler (struct k_work *work)
 
void e1s_pwr_stop_work_handler (struct k_work *work)
 
int cmd_stress_e1s_pwr (const struct shell *shell, size_t argc, char **argv)
 

Variables

uint8_t e1s_power_sensor_table [MAX_E1S_NUMBER]
 
uint8_t e1s_present_pin_table [MAX_E1S_NUMBER]
 

Macro Definition Documentation

◆ E1S_POWER_AVG_PERIOD

#define E1S_POWER_AVG_PERIOD   250

◆ E1S_POWER_CLOCK_PERIOD

#define E1S_POWER_CLOCK_PERIOD   2

◆ MAX_E1S_NUMBER

#define MAX_E1S_NUMBER   16

Function Documentation

◆ cmd_stress_e1s_pwr()

int cmd_stress_e1s_pwr ( const struct shell *  shell,
size_t  argc,
char **  argv 
)
Here is the call graph for this function:

◆ e1s_pwr_stop_work_handler()

void e1s_pwr_stop_work_handler ( struct k_work *  work)

◆ e1s_pwr_work_handler()

void e1s_pwr_work_handler ( struct k_work *  work)
Here is the call graph for this function:

Variable Documentation

◆ e1s_power_sensor_table

uint8_t e1s_power_sensor_table[MAX_E1S_NUMBER]
Initial value:
= {
}
#define SENSOR_NUM_POUT_E1S_9
Definition: plat_sensor_table.h:240
#define SENSOR_NUM_POUT_E1S_2
Definition: plat_sensor_table.h:205
#define SENSOR_NUM_POUT_E1S_10
Definition: plat_sensor_table.h:245
#define SENSOR_NUM_POUT_E1S_14
Definition: plat_sensor_table.h:265
#define SENSOR_NUM_POUT_E1S_15
Definition: plat_sensor_table.h:270
#define SENSOR_NUM_POUT_E1S_8
Definition: plat_sensor_table.h:235
#define SENSOR_NUM_POUT_E1S_0
Definition: plat_sensor_table.h:195
#define SENSOR_NUM_POUT_E1S_7
Definition: plat_sensor_table.h:230
#define SENSOR_NUM_POUT_E1S_13
Definition: plat_sensor_table.h:260
#define SENSOR_NUM_POUT_E1S_6
Definition: plat_sensor_table.h:225
#define SENSOR_NUM_POUT_E1S_1
Definition: plat_sensor_table.h:200
#define SENSOR_NUM_POUT_E1S_4
Definition: plat_sensor_table.h:215
#define SENSOR_NUM_POUT_E1S_11
Definition: plat_sensor_table.h:250
#define SENSOR_NUM_POUT_E1S_12
Definition: plat_sensor_table.h:255
#define SENSOR_NUM_POUT_E1S_5
Definition: plat_sensor_table.h:220
#define SENSOR_NUM_POUT_E1S_3
Definition: plat_sensor_table.h:210

◆ e1s_present_pin_table

uint8_t e1s_present_pin_table[MAX_E1S_NUMBER]
Initial value:
= {
PRSNT_SSD0_R_N, PRSNT_SSD1_R_N, PRSNT_SSD2_R_N, PRSNT_SSD3_R_N,
PRSNT_SSD4_R_N, PRSNT_SSD5_R_N, PRSNT_SSD6_R_N, PRSNT_SSD7_R_N,
PRSNT_SSD8_R_N, PRSNT_SSD9_R_N, PRSNT_SSD10_R_N, PRSNT_SSD11_R_N,
PRSNT_SSD12_R_N, PRSNT_SSD13_R_N, PRSNT_SSD14_R_N, PRSNT_SSD15_R_N,
}