hallswitch3 2.1.0.0
|
This file contains API for Hall Switch 3 Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
Go to the source code of this file.
Data Structures | |
struct | hallswitch3_t |
Hall Switch 3 Click context object. More... | |
struct | hallswitch3_cfg_t |
Hall Switch 3 Click configuration object. More... | |
Enumerations | |
enum | hallswitch3_return_value_t { HALLSWITCH3_OK = 0 , HALLSWITCH3_ERROR = -1 } |
Hall Switch 3 Click return value data. More... | |
Functions | |
void | hallswitch3_cfg_setup (hallswitch3_cfg_t *cfg) |
Hall Switch 3 configuration object setup function. | |
err_t | hallswitch3_init (hallswitch3_t *ctx, hallswitch3_cfg_t *cfg) |
Hall Switch 3 initialization function. | |
err_t | hallswitch3_default_cfg (hallswitch3_t *ctx) |
Hall Switch 3 default configuration function. | |
err_t | hallswitch3_reg_write (hallswitch3_t *ctx, uint8_t reg, uint8_t data_in) |
Hall Switch 3 I2C writing function. | |
err_t | hallswitch3_reg_read (hallswitch3_t *ctx, uint8_t reg, uint8_t *data_out) |
Hall Switch 3 I2C reading function. | |
err_t | hallswitch3_get_status (hallswitch3_t *ctx, uint8_t *status) |
Hall Switch 3 get status function. | |
err_t | hallswitch3_reset (hallswitch3_t *ctx) |
Hall Switch 3 software reset function. | |
err_t | hallswitch3_set_one_shot (hallswitch3_t *ctx) |
Hall Switch 3 sets one-shot function. | |
err_t | hallswitch3_autonomous_mode (hallswitch3_t *ctx) |
Hall Switch 3 autonomous mode function. | |
err_t | hallswitch3_set_vpol (hallswitch3_t *ctx, uint8_t v_pol) |
Hall Switch 3 set VPOL function. | |
err_t | hallswitch3_get_mag_data (hallswitch3_t *ctx, int8_t *mag_data) |
Hall Switch 3 get mag data function. | |
err_t | hallswitch3_set_threshold (hallswitch3_t *ctx, uint8_t assert_thold, uint8_t clear_thold) |
Hall Switch 3 sets assert and clear threshold function. | |
err_t | hallswitch3_set_out_data_rate (hallswitch3_t *ctx, uint8_t odr) |
Hall Switch 3 sets output data rates function. | |
err_t | hallswitch3_get_device_id (hallswitch3_t *ctx, uint8_t *device_id) |
Hall Switch 3 get device ID function. | |
uint8_t | hallswitch3_check_mag_field (hallswitch3_t *ctx) |
Hall Switch 3 check magnetic field function. | |
This file contains API for Hall Switch 3 Click Driver.