no-OS
Functions
max24287.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 "max24287.h"
Include dependency graph for max24287.c:

Functions

int max24287_init (struct max24287_desc **dev, struct max24287_init_param *param)
 
int max24287_soft_reset (struct max24287_desc *dev)
 
int max24287_hard_reset (struct max24287_desc *dev)
 
int max24287_write (struct max24287_desc *dev, uint8_t addr, uint16_t val)
 
int max24287_read (struct max24287_desc *dev, uint8_t addr, uint16_t *val)
 
int max24287_write_bits (struct max24287_desc *dev, uint8_t addr, uint16_t val, uint16_t bitmask)
 
int max24287_config_parallel (struct max24287_desc *dev, enum max24287_parallel par, enum max24287_speed speed)
 
int max24287_get_config_parallel (struct max24287_desc *dev, enum max24287_parallel *par, enum max24287_speed *speed)
 
int max24287_config_serial (struct max24287_desc *dev, enum max24287_serial ser, enum max24287_speed speed)
 
int max24287_get_config_serial (struct max24287_desc *dev, enum max24287_serial *ser, enum max24287_speed *speed)
 
int max24287_config_link (struct max24287_desc *dev, bool up)
 
bool max24287_link_is_up (struct max24287_desc *dev)
 
void max24287_regmap (struct max24287_desc *dev)
 

Function Documentation

◆ max24287_config_link()

int max24287_config_link ( struct max24287_desc dev,
bool  up 
)
Here is the caller graph for this function:

◆ max24287_config_parallel()

int max24287_config_parallel ( struct max24287_desc dev,
enum max24287_parallel  par,
enum max24287_speed  speed 
)
Here is the caller graph for this function:

◆ max24287_config_serial()

int max24287_config_serial ( struct max24287_desc dev,
enum max24287_serial  ser,
enum max24287_speed  speed 
)
Here is the caller graph for this function:

◆ max24287_get_config_parallel()

int max24287_get_config_parallel ( struct max24287_desc dev,
enum max24287_parallel par,
enum max24287_speed speed 
)

◆ max24287_get_config_serial()

int max24287_get_config_serial ( struct max24287_desc dev,
enum max24287_serial ser,
enum max24287_speed speed 
)

◆ max24287_hard_reset()

int max24287_hard_reset ( struct max24287_desc dev)
Here is the caller graph for this function:

◆ max24287_init()

int max24287_init ( struct max24287_desc **  dev,
struct max24287_init_param param 
)

◆ max24287_link_is_up()

bool max24287_link_is_up ( struct max24287_desc dev)

◆ max24287_read()

int max24287_read ( struct max24287_desc dev,
uint8_t  addr,
uint16_t *  val 
)
Here is the caller graph for this function:

◆ max24287_regmap()

void max24287_regmap ( struct max24287_desc dev)

◆ max24287_soft_reset()

int max24287_soft_reset ( struct max24287_desc dev)
Here is the caller graph for this function:

◆ max24287_write()

int max24287_write ( struct max24287_desc dev,
uint8_t  addr,
uint16_t  val 
)
Here is the caller graph for this function:

◆ max24287_write_bits()

int max24287_write_bits ( struct max24287_desc dev,
uint8_t  addr,
uint16_t  val,
uint16_t  bitmask 
)
Here is the caller graph for this function: