spiisolator6 2.0.0.0
|
This file contains API for SPI Isolator 6 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 | spiisolator6_t |
SPI Isolator 6 Click context object. More... | |
struct | spiisolator6_cfg_t |
SPI Isolator 6 Click configuration object. More... | |
Macros | |
#define | SPIISOLATOR6_SPI_CLOCK_SPEED 100000 |
SPI Isolator 6 SPI settings. | |
#define | SPIISOLATOR6_SPI_MODE SPI_MASTER_MODE_0 |
#define | SPIISOLATOR6_SPI_CS_POLARITY SPI_MASTER_CHIP_SELECT_POLARITY_ACTIVE_LOW |
#define | SPIISOLATOR6_SPI_DUMMY_BYTE 0x00 |
#define | SPIISOLATOR6_SET_DATA_SAMPLE_EDGE SET_SPI_DATA_SAMPLE_EDGE |
Data sample selection. | |
#define | SPIISOLATOR6_SET_DATA_SAMPLE_MIDDLE SET_SPI_DATA_SAMPLE_MIDDLE |
#define | SPIISOLATOR6_MAP_MIKROBUS(cfg, mikrobus) |
MikroBUS pin mapping. | |
Enumerations | |
enum | spiisolator6_return_value_t { SPIISOLATOR6_OK = 0 , SPIISOLATOR6_ERROR = -1 } |
SPI Isolator 6 Click return value data. More... | |
Functions | |
void | spiisolator6_cfg_setup (spiisolator6_cfg_t *cfg) |
SPI Isolator 6 configuration object setup function. | |
err_t | spiisolator6_init (spiisolator6_t *ctx, spiisolator6_cfg_t *cfg) |
SPI Isolator 6 initialization function. | |
err_t | spiisolator6_generic_write (spiisolator6_t *ctx, uint8_t *data_in, uint8_t in_len) |
SPI Isolator 6 data writing function. | |
err_t | spiisolator6_generic_read (spiisolator6_t *ctx, uint8_t *data_in, uint8_t in_len, uint8_t *data_out, uint8_t out_len) |
SPI Isolator 6 data reading function. | |
This file contains API for SPI Isolator 6 Click Driver.