| BlueNRG-1 Peripherals drivers APIs

- Main Page
- Modules
- Classes
- Files

Macros
Operation Definition
BLUENRG1 Peripheral Driver » I2C Peripheral » Exported Constants

## Macros

#define | I2C_Operation_Write ((uint8_t)0)
#define | I2C_Operation_Read ((uint8_t)1)
#define | IS_I2C_OPERATION(OP)

## Detailed Description

## Macro Definition Documentation

#define I2C_Operation_Read ((uint8_t)1)

Read operation

Definition at line 179 of file BlueNRG1_i2c.h.

#define I2C_Operation_Write ((uint8_t)0)

Write operation

Definition at line 178 of file BlueNRG1_i2c.h.

#define IS_I2C_OPERATION | ( |  | OP | ) |

Value:
(((OP) == I2C_Operation_Write) || \
((OP) == I2C_Operation_Read))
I2C_Operation_Write
#define I2C_Operation_Write
Definition: BlueNRG1_i2c.h:178
I2C_Operation_Read
#define I2C_Operation_Read
Definition: BlueNRG1_i2c.h:179

This macro checks if OP is a valid operation

Definition at line 182 of file BlueNRG1_i2c.h.