spiisolator 2.0.0.0
|
This file contains API for SPI ISLOATOR 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 | addr_cmd_t |
struct | spiisolator_t |
Click ctx object definition. More... | |
struct | spiisolator_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | spiisolator_cfg_setup (spiisolator_cfg_t *cfg) |
Config Object Initialization function. | |
SPIISOLATOR_RETVAL | spiisolator_init (spiisolator_t *ctx, spiisolator_cfg_t *cfg) |
Initialization function. | |
void | spiisolator_generic_transfer (spiisolator_t *ctx, uint8_t *wr_buf, uint16_t wr_len, uint8_t *rd_buf, uint16_t rd_len) |
Generic transfer function. | |
void | spiisolator_write_cmd (spiisolator_t *ctx, uint8_t cmd, uint8_t tx_data) |
void | spiisolator_write_byte (spiisolator_t *ctx, uint8_t reg_address, uint8_t write_cmd, uint8_t write_data) |
Write the byte of data function. | |
uint8_t | spiisolator_read_byte (spiisolator_t *ctx, uint8_t reg_address, uint8_t read_cmd) |
Read the byte of data function. | |
void | spiisolator_write_data (spiisolator_t *ctx, uint8_t reg_address, uint8_t write_cmd, uint16_t write_data) |
Write 16-bit data function. | |
uint16_t | spiisolator_read_data (spiisolator_t *ctx, uint8_t reg_address, uint8_t read_cmd) |
Read 16-bit data function. | |
void | spiisolator_write_bytes (spiisolator_t *ctx, uint8_t reg_address, uint8_t write_cmd, uint8_t *write_data, uint16_t n_bytes) |
Sequential write function. | |
void | spiisolator_read_bytes (spiisolator_t *ctx, uint8_t reg_address, uint8_t read_cmd, uint8_t *read_data, uint16_t n_bytes) |
Sequential read function. | |
This file contains API for SPI ISLOATOR Click driver.