macaddress 2.0.0.0
|
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. | |
void macaddress_cfg_setup | ( | macaddress_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void macaddress_generic_read | ( | macaddress_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | data_buf, | ||
uint8_t | len ) |
Generic read function.
ctx | Click object. |
reg | Register address. |
data_buf | Output data buffer. |
len | Number of the bytes to be read. |
@description This function reads data from the desired register.
void macaddress_generic_write | ( | macaddress_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | data_buf, | ||
uint8_t | len ) |
Generic write function.
ctx | Click object. |
reg | Register address. |
data_buf | Data buf to be written. |
len | Number of the bytes in data buf. |
@description This function writes data to the desired register.
void macaddress_get_mac | ( | macaddress_t * | ctx, |
uint8_t * | read_mac ) |
Generic read mac address function.
ctx | Click object. |
read_mac | pointer 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_RETVAL macaddress_init | ( | macaddress_t * | ctx, |
macaddress_cfg_t * | cfg ) |
Initialization function.
macaddress | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.