The rest of libopencm3 doesn't use a separate mask definition or a single bit flag, I don't really see any reason to add one here.