pixi 2.0.0.0
Public function

Functions

void pixi_cfg_setup (pixi_cfg_t *cfg)
 Config Object Initialization function.
 
PIXI_RETVAL pixi_init (pixi_t *ctx, pixi_cfg_t *cfg)
 Initialization function.
 
void pixi_default_cfg (pixi_t *ctx)
 Click Default Configuration function.
 
uint8_t pixi_write_reg (pixi_t *ctx, const uint8_t reg_addr, uint32_t reg_data)
 Write register function.
 
uint8_t pixi_read_reg (pixi_t *ctx, const uint8_t reg_addr, uint32_t *reg_data)
 Read register function.
 

Detailed Description

Function Documentation

◆ pixi_cfg_setup()

void pixi_cfg_setup ( pixi_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.

◆ pixi_default_cfg()

void pixi_default_cfg ( pixi_t * ctx)

Click Default Configuration function.

Parameters
ctxClick object.

@description This function executes default configuration for Pixi click.

◆ pixi_init()

PIXI_RETVAL pixi_init ( pixi_t * ctx,
pixi_cfg_t * cfg )

Initialization function.

Parameters
pixiClick object.
cfgClick configuration structure.

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

◆ pixi_read_reg()

uint8_t pixi_read_reg ( pixi_t * ctx,
const uint8_t reg_addr,
uint32_t * reg_data )

Read register function.

Parameters
ctxClick object.
reg_addrRegister address.
reg_dataRead buffer.

@description This function reads data from the click module.

◆ pixi_write_reg()

uint8_t pixi_write_reg ( pixi_t * ctx,
const uint8_t reg_addr,
uint32_t reg_data )

Write register function.

Parameters
ctxClick object.
reg_addrRegister address.
reg_dataWrite data.

@description This function writes data to the click module.