BSB Developer Docs
Loading...
Searching...
No Matches
wifi_cli_define.h
1#pragma once
2
3#include <stdint.h>
4
5#define MAX_ARG 10
6
7typedef struct {
8 uint32_t bitmap;
9 uint32_t arg[MAX_ARG];
11
12#define IS_CONSOLE_ARG_VALID(args, arg_number) ((args->bitmap & (1 << arg_number)) != 0)
13
14#define GET_OPTIONAL_COMMAND_ARG(args, arg_number, default_value, type) \
15 (IS_CONSOLE_ARG_VALID(args, arg_number) ? (type)(args->arg[arg_number]) : \
16 (type)(default_value))
Definition wifi_cli_define.h:7