no-OS
Functions
adin1300.c File Reference
#include <stdio.h>
#include <errno.h>
#include "no_os_alloc.h"
#include "no_os_delay.h"
#include "no_os_gpio.h"
#include "mdio_bitbang.h"
#include "adin1300.h"
Include dependency graph for adin1300.c:

Functions

int adin1300_init (struct adin1300_desc **dev, struct adin1300_init_param *param)
 
int adin1300_soft_reset (struct adin1300_desc *dev)
 
int adin1300_hard_reset (struct adin1300_desc *dev)
 
int adin1300_remove (struct adin1300_desc *dev)
 
int adin1300_write (struct adin1300_desc *dev, uint32_t addr, uint16_t val)
 
int adin1300_read (struct adin1300_desc *dev, uint32_t addr, uint16_t *val)
 
int adin1300_write_bits (struct adin1300_desc *dev, uint32_t addr, uint16_t val, uint16_t bitmask)
 
int adin1300_config_rgmii (struct adin1300_desc *dev, struct adin1300_rgmii_config rgmii)
 
int adin1300_config_gp_clk (struct adin1300_desc *dev, bool on, enum adin1300_gp_clk_source source)
 
int adin1300_config_clk25_ref (struct adin1300_desc *dev, bool on)
 
int adin1300_config_speed (struct adin1300_desc *dev, enum adin1300_speed speed_cap)
 
int adin1300_autoneg (struct adin1300_desc *dev, bool on)
 
bool adin1300_link_is_up (struct adin1300_desc *dev)
 
enum adin1300_speed adin1300_resolved_speed (struct adin1300_desc *dev)
 

Function Documentation

◆ adin1300_autoneg()

int adin1300_autoneg ( struct adin1300_desc dev,
bool  on 
)
Here is the caller graph for this function:

◆ adin1300_config_clk25_ref()

int adin1300_config_clk25_ref ( struct adin1300_desc dev,
bool  on 
)
Here is the caller graph for this function:

◆ adin1300_config_gp_clk()

int adin1300_config_gp_clk ( struct adin1300_desc dev,
bool  on,
enum adin1300_gp_clk_source  source 
)
Here is the caller graph for this function:

◆ adin1300_config_rgmii()

int adin1300_config_rgmii ( struct adin1300_desc dev,
struct adin1300_rgmii_config  rgmii 
)
Here is the caller graph for this function:

◆ adin1300_config_speed()

int adin1300_config_speed ( struct adin1300_desc dev,
enum adin1300_speed  speed_cap 
)
Here is the caller graph for this function:

◆ adin1300_hard_reset()

int adin1300_hard_reset ( struct adin1300_desc dev)
Here is the caller graph for this function:

◆ adin1300_init()

int adin1300_init ( struct adin1300_desc **  dev,
struct adin1300_init_param param 
)

◆ adin1300_link_is_up()

bool adin1300_link_is_up ( struct adin1300_desc dev)

◆ adin1300_read()

int adin1300_read ( struct adin1300_desc dev,
uint32_t  addr,
uint16_t *  val 
)
inline
Here is the caller graph for this function:

◆ adin1300_remove()

int adin1300_remove ( struct adin1300_desc dev)

◆ adin1300_resolved_speed()

enum adin1300_speed adin1300_resolved_speed ( struct adin1300_desc dev)
Here is the caller graph for this function:

◆ adin1300_soft_reset()

int adin1300_soft_reset ( struct adin1300_desc dev)
Here is the caller graph for this function:

◆ adin1300_write()

int adin1300_write ( struct adin1300_desc dev,
uint32_t  addr,
uint16_t  val 
)
inline
Here is the caller graph for this function:

◆ adin1300_write_bits()

int adin1300_write_bits ( struct adin1300_desc dev,
uint32_t  addr,
uint16_t  val,
uint16_t  bitmask 
)
Here is the caller graph for this function: