ata663254 2.0.0.0
Public function

Functions

void ata663254_cfg_setup (ata663254_cfg_t *cfg)
 Config Object Initialization function.
 
ATA663254_RETVAL ata663254_init (ata663254_t *ctx, ata663254_cfg_t *cfg)
 Initialization function.
 
void ata663254_generic_write (ata663254_t *ctx, char *data_buf, uint16_t len)
 Generic multi write function.
 
int32_t ata663254_generic_read (ata663254_t *ctx, char *data_buf, uint16_t len)
 Generic multi read function.
 
void ata663254_enable (ata663254_t *ctx, uint8_t state)
 Chip enable function.
 
uint8_t ata663254_get_rst_state (ata663254_t *ctx)
 Undervoltage detect function.
 

Detailed Description

Function Documentation

◆ ata663254_cfg_setup()

void ata663254_cfg_setup ( ata663254_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.

◆ ata663254_enable()

void ata663254_enable ( ata663254_t * ctx,
uint8_t state )

Chip enable function.

Parameters
ctxClick object.
state0 - disable, 1 - enable

@description This function enables or disables chip via Chip Select pin.

◆ ata663254_generic_read()

int32_t ata663254_generic_read ( ata663254_t * ctx,
char * data_buf,
uint16_t len )

Generic multi read function.

Parameters
ctxClick object.
data_bufOutput data buffer.
lenNumber of the bytes in data buffer.

@description This function reads data.

◆ ata663254_generic_write()

void ata663254_generic_write ( ata663254_t * ctx,
char * data_buf,
uint16_t len )

Generic multi write function.

Parameters
ctxClick object.
data_bufInput data buffer
lenNumber of the bytes in the data buffer

@description This function writes data.

◆ ata663254_get_rst_state()

uint8_t ata663254_get_rst_state ( ata663254_t * ctx)

Undervoltage detect function.

Parameters
ctxClick object.
Returns
Rst pin state 0 - undervoltage detected, 1 - undervoltage did not detect.

@description This function returns 0 if undervoltage have detected, reset pin switched to 0.

◆ ata663254_init()

ATA663254_RETVAL ata663254_init ( ata663254_t * ctx,
ata663254_cfg_t * cfg )

Initialization function.

Parameters
ata663254Click object.
cfgClick configuration structure.

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