Adding names to status register bits

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable
        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. For examle: #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   
0 Likes
0 Replies