Loading...
Searching...
No Matches

Default configuration. More...

Detailed Description

Default configuration.

Author
Francisco Molina franc.nosp@m.ois-.nosp@m.xavie.nosp@m.r.mo.nosp@m.lina@.nosp@m.inri.nosp@m.a.fr

Definition in file hm330x_params.h.

#include "board.h"
#include "saul_reg.h"
#include "hm330x.h"
#include "hm330x_constants.h"
+ Include dependency graph for hm330x_params.h:

Go to the source code of this file.

Macros

#define HM330X_NUMOF   ARRAY_SIZE(hm330x_params)
 Define the number of configured sensors.
 
#define HM330X_INFO_NUM   ARRAY_SIZE(hm330x_saul_info)
 Number of saul info structs.
 

Variables

static const hm330x_params_t hm330x_params []
 Configuration struct.
 
static const saul_reg_info_t hm330x_saul_info []
 Additional meta information to keep in the SAUL registry.
 

Set default configuration parameters

#define HM330X_PARAM_I2C_DEV   I2C_DEV(0)
 HM330X default I2C bus.
 
#define HM330X_PARAM_RESET_PIN   GPIO_UNDEF
 HM330X default reset pin.
 
#define HM330X_PARAM_SET_PIN   GPIO_UNDEF
 HM330X default set pin.
 
#define HM330X_SAUL_INFO   { .name = "hm330x" }
 HM330X default SAUL information.
 
#define HM330X_PARAMS
 HM330X default parameters.
 

Macro Definition Documentation

◆ HM330X_INFO_NUM

#define HM330X_INFO_NUM   ARRAY_SIZE(hm330x_saul_info)

Number of saul info structs.

Definition at line 94 of file hm330x_params.h.

◆ HM330X_NUMOF

#define HM330X_NUMOF   ARRAY_SIZE(hm330x_params)

Define the number of configured sensors.

Definition at line 81 of file hm330x_params.h.

◆ HM330X_PARAM_I2C_DEV

#define HM330X_PARAM_I2C_DEV   I2C_DEV(0)

HM330X default I2C bus.

Definition at line 40 of file hm330x_params.h.

◆ HM330X_PARAM_RESET_PIN

#define HM330X_PARAM_RESET_PIN   GPIO_UNDEF

HM330X default reset pin.

Definition at line 46 of file hm330x_params.h.

◆ HM330X_PARAM_SET_PIN

#define HM330X_PARAM_SET_PIN   GPIO_UNDEF

HM330X default set pin.

Definition at line 52 of file hm330x_params.h.

◆ HM330X_PARAMS

#define HM330X_PARAMS
Value:
.reset_pin = HM330X_PARAM_RESET_PIN, \
.set_pin = HM330X_PARAM_SET_PIN }
#define HM330X_PARAM_RESET_PIN
HM330X default reset pin.
#define HM330X_PARAM_SET_PIN
HM330X default set pin.
#define HM330X_PARAM_I2C_DEV
HM330X default I2C bus.

HM330X default parameters.

Definition at line 64 of file hm330x_params.h.

◆ HM330X_SAUL_INFO

#define HM330X_SAUL_INFO   { .name = "hm330x" }

HM330X default SAUL information.

Definition at line 58 of file hm330x_params.h.

Variable Documentation

◆ hm330x_params

const hm330x_params_t hm330x_params[]
static
Initial value:
=
{
}
#define HM330X_PARAMS
HM330X default parameters.

Configuration struct.

Definition at line 73 of file hm330x_params.h.

◆ hm330x_saul_info

const saul_reg_info_t hm330x_saul_info[]
static
Initial value:
=
{
}
#define HM330X_SAUL_INFO
HM330X default SAUL information.

Additional meta information to keep in the SAUL registry.

Definition at line 86 of file hm330x_params.h.