| BlueNRG-1 Peripherals drivers APIs

- Main Page
- Modules
- Classes
- Files

Macros
Operating Mode Definition
BLUENRG1 Peripheral Driver » I2C Peripheral » Exported Constants

## Macros

#define | I2C_OperatingMode_Slave (0x00)
#define | I2C_OperatingMode_Master (0x01)
#define | I2C_OperatingMode_MasterSlave (0x02)
#define | IS_I2C_OPERATING_MODE(MODE)

## Detailed Description

## Macro Definition Documentation

#define I2C_OperatingMode_Master (0x01)

Master

Definition at line 162 of file BlueNRG1_i2c.h.

#define I2C_OperatingMode_MasterSlave (0x02)

Master/Slave

Definition at line 163 of file BlueNRG1_i2c.h.

#define I2C_OperatingMode_Slave (0x00)

Slave

Definition at line 161 of file BlueNRG1_i2c.h.

#define IS_I2C_OPERATING_MODE | ( |  | MODE | ) |

Value:
(((MODE) == I2C_OperatingMode_Master) || \
((MODE) == I2C_OperatingMode_Slave) || \
((MODE) == I2C_OperatingMode_MasterSlave))
I2C_OperatingMode_Slave
#define I2C_OperatingMode_Slave
Definition: BlueNRG1_i2c.h:161
I2C_OperatingMode_MasterSlave
#define I2C_OperatingMode_MasterSlave
Definition: BlueNRG1_i2c.h:163
I2C_OperatingMode_Master
#define I2C_OperatingMode_Master
Definition: BlueNRG1_i2c.h:162

This macro checks if MODE is a valid operating mode

Definition at line 166 of file BlueNRG1_i2c.h.