OpenBIC
OpenSource Bridge-IC
gpio_shell.h File Reference
#include <stdlib.h>
#include <shell/shell.h>
#include <drivers/gpio.h>
Include dependency graph for gpio_shell.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void cmd_gpio_cfg_list_group (const struct shell *shell, size_t argc, char **argv)
 
void cmd_gpio_cfg_list_all (const struct shell *shell, size_t argc, char **argv)
 
void cmd_gpio_cfg_get (const struct shell *shell, size_t argc, char **argv)
 
void cmd_gpio_cfg_set_val (const struct shell *shell, size_t argc, char **argv)
 
void cmd_gpio_cfg_set_int_type (const struct shell *shell, size_t argc, char **argv)
 
void cmd_gpio_muti_fn_ctl_list (const struct shell *shell, size_t argc, char **argv)
 
void device_gpio_name_get (size_t idx, struct shell_static_entry *entry)
 
 SHELL_DYNAMIC_CMD_CREATE (gpio_device_name, device_gpio_name_get)
 
 SHELL_STATIC_SUBCMD_SET_CREATE (sub_gpio_set_cmds, SHELL_CMD(val, NULL, "Set pin value.", cmd_gpio_cfg_set_val), SHELL_CMD(int_type, NULL, "Set interrupt pin type.", cmd_gpio_cfg_set_int_type), SHELL_SUBCMD_SET_END)
 
 SHELL_STATIC_SUBCMD_SET_CREATE (sub_gpio_cmds, SHELL_CMD(list_group, &gpio_device_name, "List all GPIO config from certain group.", cmd_gpio_cfg_list_group), SHELL_CMD(list_all, NULL, "List all GPIO config.", cmd_gpio_cfg_list_all), SHELL_CMD(get, NULL, "Get GPIO config", cmd_gpio_cfg_get), SHELL_CMD(set, &sub_gpio_set_cmds, "Set GPIO config", NULL), SHELL_CMD(multifnctl, NULL, "List all GPIO multi-function control regs.", cmd_gpio_muti_fn_ctl_list), SHELL_SUBCMD_SET_END)
 

Function Documentation

◆ cmd_gpio_cfg_get()

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

◆ cmd_gpio_cfg_list_all()

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

◆ cmd_gpio_cfg_list_group()

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

◆ cmd_gpio_cfg_set_int_type()

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

◆ cmd_gpio_cfg_set_val()

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

◆ cmd_gpio_muti_fn_ctl_list()

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

◆ device_gpio_name_get()

void device_gpio_name_get ( size_t  idx,
struct shell_static_entry *  entry 
)

◆ SHELL_DYNAMIC_CMD_CREATE()

SHELL_DYNAMIC_CMD_CREATE ( gpio_device_name  ,
device_gpio_name_get   
)

◆ SHELL_STATIC_SUBCMD_SET_CREATE() [1/2]

SHELL_STATIC_SUBCMD_SET_CREATE ( sub_gpio_cmds  ,
SHELL_CMD(list_group, &gpio_device_name, "List all GPIO config from certain group.", cmd_gpio_cfg_list_group)  ,
SHELL_CMD(list_all, NULL, "List all GPIO config.", cmd_gpio_cfg_list_all)  ,
SHELL_CMD(get, NULL, "Get GPIO config", cmd_gpio_cfg_get)  ,
SHELL_CMD(set, &sub_gpio_set_cmds, "Set GPIO config", NULL)  ,
SHELL_CMD(multifnctl, NULL, "List all GPIO multi-function control regs.", cmd_gpio_muti_fn_ctl_list)  ,
SHELL_SUBCMD_SET_END   
)

◆ SHELL_STATIC_SUBCMD_SET_CREATE() [2/2]

SHELL_STATIC_SUBCMD_SET_CREATE ( sub_gpio_set_cmds  ,
SHELL_CMD(val, NULL, "Set pin value.", cmd_gpio_cfg_set_val)  ,
SHELL_CMD(int_type, NULL, "Set interrupt pin type.", cmd_gpio_cfg_set_int_type)  ,
SHELL_SUBCMD_SET_END   
)