Add get/set continuous bits function and macro