spiisolator4 2.0.0.0
spiisolator4.h File Reference

This file contains API for SPI Isolator 4 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  spiisolator4_t
 SPI Isolator 4 Click context object. More...
 
struct  spiisolator4_cfg_t
 SPI Isolator 4 Click configuration object. More...
 

Macros

#define SPIISOLATOR4_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE
 Data sample selection.
 
#define SPIISOLATOR4_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE
 
#define SPIISOLATOR4_MAP_MIKROBUS(cfg, mikrobus)
 MikroBUS pin mapping.
 

Enumerations

enum  spiisolator4_return_value_t { SPIISOLATOR4_OK = 0 , SPIISOLATOR4_ERROR = -1 }
 SPI Isolator 4 Click return value data. More...
 
enum  spiisolator4_enable_mode_t { SPIISOLATOR4_DISABLE = 0 , SPIISOLATOR4_ENABLE = 1 }
 SPI Isolator 4 Click enable mode value data. More...
 

Functions

void spiisolator4_cfg_setup (spiisolator4_cfg_t *cfg)
 SPI Isolator 4 configuration object setup function.
 
err_t spiisolator4_init (spiisolator4_t *ctx, spiisolator4_cfg_t *cfg)
 SPI Isolator 4 initialization function.
 
err_t spiisolator4_default_cfg (spiisolator4_t *ctx)
 SPI Isolator 4 default configuration function.
 
err_t spiisolator4_generic_write (spiisolator4_t *ctx, uint8_t reg, uint8_t *data_in, uint8_t len)
 SPI Isolator 4 data writing function.
 
err_t spiisolator4_generic_read (spiisolator4_t *ctx, uint8_t reg, uint8_t *data_out, uint8_t len)
 SPI Isolator 4 data reading function.
 
err_t spiisolator4_set_enable (spiisolator4_t *ctx, spiisolator4_enable_mode_t en_mode)
 SPI Isolator 4 enable isolator function.
 

Detailed Description

This file contains API for SPI Isolator 4 Click Driver.

Enumeration Type Documentation

◆ spiisolator4_enable_mode_t

SPI Isolator 4 Click enable mode value data.

Predefined enum values for driver enable mode values.

Enumerator
SPIISOLATOR4_DISABLE 
SPIISOLATOR4_ENABLE 

◆ spiisolator4_return_value_t

SPI Isolator 4 Click return value data.

Predefined enum values for driver return values.

Enumerator
SPIISOLATOR4_OK 
SPIISOLATOR4_ERROR