spiisolator5 2.1.0.0
spiisolator5.h File Reference

This file contains API for SPI Isolator 5 Click Driver. More...

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

Go to the source code of this file.

Data Structures

struct  spiisolator5_t
 SPI Isolator 5 Click context object. More...
 
struct  spiisolator5_cfg_t
 SPI Isolator 5 Click configuration object. More...
 

Macros

#define SPIISOLATOR5_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE
 Data sample selection.
 
#define SPIISOLATOR5_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE
 
#define SPIISOLATOR5_MAP_MIKROBUS(cfg, mikrobus)
 MikroBUS pin mapping.
 

Enumerations

enum  spiisolator5_return_value_t { SPIISOLATOR5_OK = 0 , SPIISOLATOR5_ERROR = -1 }
 SPI Isolator 5 Click return value data. More...
 

Functions

void spiisolator5_cfg_setup (spiisolator5_cfg_t *cfg)
 SPI Isolator 5 configuration object setup function.
 
err_t spiisolator5_init (spiisolator5_t *ctx, spiisolator5_cfg_t *cfg)
 SPI Isolator 5 initialization function.
 
void spiisolator5_enable (spiisolator5_t *ctx)
 SPI Isolator 5 enable function.
 
void spiisolator5_disable (spiisolator5_t *ctx)
 SPI Isolator 5 disable function.
 
err_t spiisolator5_write (spiisolator5_t *ctx, uint8_t *data_in, uint8_t len)
 SPI Isolator 5 data writing function.
 
err_t spiisolator5_read (spiisolator5_t *ctx, uint8_t *data_out, uint8_t len_out)
 SPI Isolator 5 data reading function.
 
err_t spiisolator5_write_then_read (spiisolator5_t *ctx, uint8_t *data_in, uint8_t len_in, uint8_t *data_out, uint8_t len_out)
 SPI Isolator 5 write then read function.
 
err_t spiisolator5_transfer (spiisolator5_t *ctx, uint8_t *data_in, uint8_t *data_out, uint8_t len)
 SPI Isolator 5 transfer function.
 

Detailed Description

This file contains API for SPI Isolator 5 Click Driver.

Enumeration Type Documentation

◆ spiisolator5_return_value_t

SPI Isolator 5 Click return value data.

Predefined enum values for driver return values.

Enumerator
SPIISOLATOR5_OK 
SPIISOLATOR5_ERROR