eeg 2.0.0.0
eeg.h File Reference

This file contains API for EEG Click Driver. More...

#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_analog_in.h"

Go to the source code of this file.

Data Structures

struct  eeg_t
 EEG Click context object. More...
 
struct  eeg_cfg_t
 EEG Click configuration object. More...
 

Macros

#define EEG_MAP_MIKROBUS(cfg, mikrobus)    cfg.an = MIKROBUS( mikrobus, MIKROBUS_AN ); \
 MikroBUS pin mapping.
 

Enumerations

enum  eeg_return_value_t { EEG_OK = 0 , EEG_ERROR = -1 }
 EEG Click return value data. More...
 

Functions

void eeg_cfg_setup (eeg_cfg_t *cfg)
 EEG configuration object setup function.
 
err_t eeg_init (eeg_t *ctx, eeg_cfg_t *cfg)
 EEG initialization function.
 
err_t eeg_read_an_pin_value (eeg_t *ctx, uint16_t *data_out)
 EEG read AN pin value function.
 
err_t eeg_read_an_pin_voltage (eeg_t *ctx, float *data_out)
 EEG read AN pin voltage level function.
 

Detailed Description

This file contains API for EEG Click Driver.

Enumeration Type Documentation

◆ eeg_return_value_t

EEG Click return value data.

Predefined enum values for driver return values.

Enumerator
EEG_OK 
EEG_ERROR