llcspi 2.0.0.0
llcspi.h File Reference

This file contains API for LLC SPI Click driver. More...

#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_spi_master.h"

Go to the source code of this file.

Data Structures

struct  llcspi_t
 Click ctx object definition. More...
 
struct  llcspi_cfg_t
 Click configuration structure definition. More...
 

Macros

#define LLCSPI_MAP_MIKROBUS(cfg, mikrobus)
 
#define LLCSPI_RETVAL   uint8_t
 
#define LLCSPI_OK   0x00
 
#define LLCSPI_INIT_ERROR   0xFF
 

Functions

void llcspi_cfg_setup (llcspi_cfg_t *cfg)
 Config Object Initialization function.
 
LLCSPI_RETVAL llcspi_init (llcspi_t *ctx, llcspi_cfg_t *cfg)
 Initialization function.
 
void llcspi_generic_transfer (llcspi_t *ctx, uint8_t *wr_buf, uint16_t wr_len, uint8_t *rd_buf, uint16_t rd_len)
 Generic transfer function.
 
void llcspi_set_cs_pin (llcspi_t *ctx, uint8_t state)
 Function for set CS pin state.
 
void llcspi_generic_write (llcspi_t *ctx, uint8_t *p_buf, uint16_t n_bytes)
 LLC SPI write.
 
void llcspi_generic_read (llcspi_t *ctx, uint8_t *p_buf, uint16_t n_bytes)
 LLC SPI read.
 

Detailed Description

This file contains API for LLC SPI Click driver.