added macro for direct HV hardware writing