macaddress 2.0.0.0
MAC Address Click Driver

Topics

 Macros
 
 Types
 Click ctx object definition.
 

Functions

MACADDRESS_RETVAL macaddress_init (macaddress_t *ctx, macaddress_cfg_t *cfg)
 Initialization function.
 
void macaddress_cfg_setup (macaddress_cfg_t *cfg)
 Config Object Initialization function.
 
void macaddress_generic_write (macaddress_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len)
 Generic write function.
 
void macaddress_generic_read (macaddress_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len)
 Generic read function.
 
void macaddress_get_mac (macaddress_t *ctx, uint8_t *read_mac)
 Generic read mac address function.
 

Detailed Description

Function Documentation

◆ macaddress_cfg_setup()

void macaddress_cfg_setup ( macaddress_cfg_t * cfg)

Config Object Initialization function.

Parameters
cfgClick configuration structure.

@description This function initializes click configuration structure to init state.

Note
All used pins will be set to unconnected state.

◆ macaddress_generic_read()

void macaddress_generic_read ( macaddress_t * ctx,
uint8_t reg,
uint8_t * data_buf,
uint8_t len )

Generic read function.

Parameters
ctxClick object.
regRegister address.
data_bufOutput data buffer.
lenNumber of the bytes to be read.

@description This function reads data from the desired register.

◆ macaddress_generic_write()

void macaddress_generic_write ( macaddress_t * ctx,
uint8_t reg,
uint8_t * data_buf,
uint8_t len )

Generic write function.

Parameters
ctxClick object.
regRegister address.
data_bufData buf to be written.
lenNumber of the bytes in data buf.

@description This function writes data to the desired register.

◆ macaddress_get_mac()

void macaddress_get_mac ( macaddress_t * ctx,
uint8_t * read_mac )

Generic read mac address function.

Parameters
ctxClick object.
read_macpointer of memory location where data be stored

@description Function performs a data reading from the target MACADDRESS_MAC_ADDR register address of 24AA025E64 2K I2C Serial EEPROMs with EUI-64� node identity on MAC Address Click board.

◆ macaddress_init()

MACADDRESS_RETVAL macaddress_init ( macaddress_t * ctx,
macaddress_cfg_t * cfg )

Initialization function.

Parameters
macaddressClick object.
cfgClick configuration structure.

@description This function initializes all necessary pins and peripherals used for this click.