reed 2.0.0.0
|
This file contains API for REED Click driver. More...
#include "drv_digital_in.h"
Go to the source code of this file.
Data Structures | |
struct | reed_t |
Click ctx object definition. More... | |
struct | reed_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | REED_MAP_MIKROBUS(cfg, mikrobus) cfg.cs = MIKROBUS( mikrobus, MIKROBUS_CS ) |
#define | REED_OK 0 |
#define | REED_INIT_ERROR (-1) |
#define | REED_NO_MAGNETIC_FIELD 0 |
#define | REED_MAGNETIC_FIELD_DETECTED 1 |
Functions | |
void | reed_cfg_setup (reed_cfg_t *cfg) |
Config Object Initialization function. | |
err_t | reed_init (reed_t *ctx, reed_cfg_t *cfg) |
Initialization function. | |
uint8_t | reed_get_status (reed_t *ctx) |
Get sensor magnetic detected status function. | |
This file contains API for REED Click driver.