magneto2 2.0.0.0
magneto2.h File Reference

This file contains API for Magneto 2 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  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.
 
MAGNETO2_RETVAL magneto2_init (magneto2_t *ctx, magneto2_cfg_t *cfg)
 Initialization function.
 
float magneto2_read_angle (magneto2_t *ctx)
 Generic read angle function.
 
uint16_t magneto2_read_data (magneto2_t *ctx)
 Generic read two bytes command function.
 

Detailed Description

This file contains API for Magneto 2 Click driver.