Adding names to status register bits | Cypress Semiconductor
Adding names to status register bits
Is there any way to add names to bits in a status register? What I want to be able to do is add actual names to the internal signal so the mask can have a meaningful name. The file cyfitter.h creates a mask for each bit used but is very non-descriptive.
#define Status_Test_Register_sts_sts_reg__0__MASK 0x01u
#define Status_Test_Register_sts_sts_reg__0__POS 0
What would be useful is more along the lines of:
#define SWITCH_INPUT_MASK 0x01u
#define SWITCH_INPUT_POS 0