linhall 2.0.0.0
linhall.h File Reference

This file contains API for LIN HALL Click driver. More...

#include "drv_spi_master.h"

Go to the source code of this file.

Data Structures

struct  linhall_t
 Click ctx object definition. More...
 
struct  linhall_cfg_t
 Click configuration structure definition. More...
 

Macros

#define LINHALL_MAP_MIKROBUS(cfg, mikrobus)
 
#define LINHALL_RETVAL   uint8_t
 
#define LINHALL_OK   0x00
 
#define LINHALL_INIT_ERROR   0xFF
 

Functions

void linhall_cfg_setup (linhall_cfg_t *cfg)
 Config Object Initialization function.
 
LINHALL_RETVAL linhall_init (linhall_t *ctx, linhall_cfg_t *cfg)
 Initialization function.
 
void linhall_generic_transfer (linhall_t *ctx, uint8_t *wr_buf, uint16_t wr_len, uint8_t *rd_buf, uint16_t rd_len)
 Generic transfer function.
 
uint16_t linhall_read_data (linhall_t *ctx)
 Read 12-bit data function.
 

Detailed Description

This file contains API for LIN HALL Click driver.