no-OS
Loading...
Searching...
No Matches
cmd_list.c File Reference

Implementation of terminal command list for ADIN1320. More...

#include <stdbool.h>
#include <stdint.h>
#include "adin1320.h"
#include "no_os_print_log.h"
Include dependency graph for cmd_list.c:

Classes

struct  cmd_input
 

Macros

#define CMD_PARAM_EMPTY   -1
 
#define CMD_BUFFER_SIZE   100
 
#define CMD_PARAM_SIZE   10
 

Enumerations

enum  cmd_type {
  CMD_TYPE_NONE = 0 ,
  CMD_TYPE_MDIO_READ ,
  CMD_TYPE_MDIO_WRITE ,
  CMD_TYPE_HELP ,
  CMD_TYPE_RESET ,
  CMD_TYPE_MAX
}
 

Functions

void cmd_print_list (struct cmd_input *cmd_input)
 
void cmd_mdio_read (struct adin1320_desc *dev, struct cmd_input *cmd_input)
 
void cmd_mdio_write (struct adin1320_desc *dev, struct cmd_input *cmd_input)
 
void cmd_reset (struct adin1320_desc *dev_0, struct adin1320_desc *dev_8, struct cmd_input *cmd_input, bool dev_init[2])
 

Detailed Description

Implementation of terminal command list for ADIN1320.

Author
Johnson Ralph Perez (Johns.nosp@m.onra.nosp@m.lph.P.nosp@m.erez.nosp@m.@anal.nosp@m.og.c.nosp@m.om)

Copyright 2026(c) Analog Devices, Inc.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  3. Neither the name of Analog Devices, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES, INC. “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES, INC. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Macro Definition Documentation

◆ CMD_BUFFER_SIZE

#define CMD_BUFFER_SIZE   100

◆ CMD_PARAM_EMPTY

#define CMD_PARAM_EMPTY   -1

◆ CMD_PARAM_SIZE

#define CMD_PARAM_SIZE   10

Enumeration Type Documentation

◆ cmd_type

enum cmd_type
Enumerator
CMD_TYPE_NONE 
CMD_TYPE_MDIO_READ 
CMD_TYPE_MDIO_WRITE 
CMD_TYPE_HELP 
CMD_TYPE_RESET 
CMD_TYPE_MAX 

Function Documentation

◆ cmd_mdio_read()

void cmd_mdio_read ( struct adin1320_desc * dev,
struct cmd_input * cmd_input )
Here is the caller graph for this function:

◆ cmd_mdio_write()

void cmd_mdio_write ( struct adin1320_desc * dev,
struct cmd_input * cmd_input )
Here is the caller graph for this function:

◆ cmd_print_list()

void cmd_print_list ( struct cmd_input * cmd_input)
Here is the caller graph for this function:

◆ cmd_reset()

void cmd_reset ( struct adin1320_desc * dev_0,
struct adin1320_desc * dev_8,
struct cmd_input * cmd_input,
bool dev_init[2] )
Here is the caller graph for this function: