OpenBIC
OpenSource Bridge-IC
power_shell.c File Reference
#include "power_shell.h"
#include "power_status.h"
#include "util_sys.h"
#include "hal_gpio.h"
#include <stdio.h>
#include <zephyr.h>
#include <string.h>
Include dependency graph for power_shell.c:

Functions

int check_pwr_ctl_valid (const struct shell *shell, uint8_t ctl_opt, uint8_t pwr_state)
 
void cmd_power_status (const struct shell *shell, size_t argc, char **argv)
 
void cmd_power_control (const struct shell *shell, size_t argc, char **argv)
 

Function Documentation

◆ check_pwr_ctl_valid()

int check_pwr_ctl_valid ( const struct shell *  shell,
uint8_t  ctl_opt,
uint8_t  pwr_state 
)

◆ cmd_power_control()

void cmd_power_control ( const struct shell *  shell,
size_t  argc,
char **  argv 
)

◆ cmd_power_status()

void cmd_power_status ( const struct shell *  shell,
size_t  argc,
char **  argv 
)