magneticlinear 2.0.0.0
magneticlinear.h File Reference

This file contains API for Magnetic linear 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  magneticlinear_t
 Click ctx object definition. More...
 
struct  magneticlinear_cfg_t
 Click configuration structure definition. More...
 

Macros

#define MAGNETICLINEAR_MAP_MIKROBUS(cfg, mikrobus)
 
#define MAGNETICLINEAR_RETVAL   uint8_t
 
#define MAGNETICLINEAR_OK   0x00
 
#define MAGNETICLINEAR_INIT_ERROR   0xFF
 

Functions

void magneticlinear_cfg_setup (magneticlinear_cfg_t *cfg)
 Config Object Initialization function.
 
MAGNETICLINEAR_RETVAL magneticlinear_init (magneticlinear_t *ctx, magneticlinear_cfg_t *cfg)
 Initialization function.
 
void magneticlinear_generic_transfer (magneticlinear_t *ctx, uint8_t *wr_buf, uint16_t wr_len, uint8_t *rd_buf, uint16_t rd_len)
 Generic transfer function.
 
uint16_t magneticlinear_read_data (magneticlinear_t *ctx)
 Read data function.
 

Detailed Description

This file contains API for Magnetic linear Click driver.