STMicroelectronics / STMems_Standard_C_drivers

Platform-independent drivers for STMicroelectronics MEMS motion and environmental sensors, based on standard C programming language.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

_xor xor :Naming Conventions

xugaolei opened this issue · comments

It's better change _xor to xor for Consistent naming.
typedef struct { uint8_t xda : 1; uint8_t yda : 1; uint8_t zda : 1; uint8_t zyxda : 1; uint8_t _xor : 1; uint8_t yor : 1; uint8_t zor : 1; uint8_t zyxor : 1; } lis3dh_status_reg_t;

typedef struct {
  uint8_t xda               : 1;
  uint8_t yda               : 1;
  uint8_t zda               : 1;
  uint8_t zyxda             : 1;
  uint8_t _xor              : 1;
  uint8_t yor               : 1;
  uint8_t zor               : 1;
  uint8_t zyxor             : 1;
} lis3dh_status_reg_t;

Hi xugaolei,

I've got your point but please see #19 for understanding the choice.

Thank you for clarification opportunity.