spiisolator8 2.1.0.0
spiisolator8.h File Reference

This file contains API for SPI Isolator 8 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  spiisolator8_t
 SPI Isolator 8 Click context object. More...
 
struct  spiisolator8_cfg_t
 SPI Isolator 8 Click configuration object. More...
 

Macros

#define SPIISOLATOR8_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE
 Data sample selection.
 
#define SPIISOLATOR8_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE
 
#define SPIISOLATOR8_MAP_MIKROBUS(cfg, mikrobus)
 MikroBUS pin mapping.
 

Enumerations

enum  spiisolator8_return_value_t { SPIISOLATOR8_OK = 0 , SPIISOLATOR8_ERROR = -1 }
 SPI Isolator 8 Click return value data. More...
 

Functions

void spiisolator8_cfg_setup (spiisolator8_cfg_t *cfg)
 SPI Isolator 8 configuration object setup function.
 
err_t spiisolator8_init (spiisolator8_t *ctx, spiisolator8_cfg_t *cfg)
 SPI Isolator 8 initialization function.
 
void spiisolator8_default_cfg (spiisolator8_t *ctx)
 SPI Isolator 8 default configuration function.
 
void spiisolator8_enc_enable (spiisolator8_t *ctx)
 SPI Isolator 8 enable side 1 function.
 
void spiisolator8_enc_disable (spiisolator8_t *ctx)
 SPI Isolator 8 disable side 1 function.
 
void spiisolator8_enp_enable (spiisolator8_t *ctx)
 SPI Isolator 8 enable side 2 function.
 
void spiisolator8_enp_disable (spiisolator8_t *ctx)
 SPI Isolator 8 disable side 2 function.
 
uint8_t spiisolator8_get_fault (spiisolator8_t *ctx)
 SPI Isolator 8 get fault function.
 
err_t spiisolator8_write (spiisolator8_t *ctx, uint8_t *data_in, uint8_t len)
 SPI Isolator 8 data writing function.
 
err_t spiisolator8_read (spiisolator8_t *ctx, uint8_t *data_out, uint8_t len_out)
 SPI Isolator 8 data reading function.
 
err_t spiisolator8_write_then_read (spiisolator8_t *ctx, uint8_t *data_in, uint8_t len_in, uint8_t *data_out, uint8_t len_out)
 SPI Isolator 8 write then read function.
 
err_t spiisolator8_transfer (spiisolator8_t *ctx, uint8_t *data_in, uint8_t *data_out, uint8_t len)
 SPI Isolator 8 data transfer function.
 

Detailed Description

This file contains API for SPI Isolator 8 Click Driver.

Enumeration Type Documentation

◆ spiisolator8_return_value_t

SPI Isolator 8 Click return value data.

Predefined enum values for driver return values.

Enumerator
SPIISOLATOR8_OK 
SPIISOLATOR8_ERROR