magneto2  2.0.0.0
Data Structures | Macros | Functions
magneto2.h File Reference

This file contains API for Magneto 2 Click driver. More...

#include "mikrosdk_version.h"
#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  magneto2_t
 Click ctx object definition. More...
 
struct  magneto2_cfg_t
 Click configuration structure definition. More...
 

Macros

#define MAGNETO2_MAP_MIKROBUS(cfg, mikrobus)
 
#define MAGNETO2_RETVAL   uint8_t
 
#define MAGNETO2_OK   0x00
 
#define MAGNETO2_INIT_ERROR   0xFF
 

Functions

void magneto2_cfg_setup (magneto2_cfg_t *cfg)
 Config Object Initialization function. More...
 
MAGNETO2_RETVAL magneto2_init (magneto2_t *ctx, magneto2_cfg_t *cfg)
 Initialization function. More...
 
float magneto2_read_angle (magneto2_t *ctx)
 Generic read angle function. More...
 
uint16_t magneto2_read_data (magneto2_t *ctx)
 Generic read two bytes command function. More...
 

Detailed Description

This file contains API for Magneto 2 Click driver.