hecc_write
hecc_write(priv, reg, hecc_read(priv, reg) | bit_mask);
hecc_write(priv, reg, hecc_read(priv, reg) & ~bit_mask);
hecc_write(priv, HECC_CANBTC, can_btc);
hecc_write(priv, HECC_CANMC, 0);
hecc_write(priv, HECC_CANTIOC, HECC_CANTIOC_EN);
hecc_write(priv, HECC_CANRIOC, HECC_CANRIOC_EN);
hecc_write(priv, HECC_CANTA, HECC_SET_REG);
hecc_write(priv, HECC_CANRMP, HECC_SET_REG);
hecc_write(priv, HECC_CANGIF0, HECC_SET_REG);
hecc_write(priv, HECC_CANGIF1, HECC_SET_REG);
hecc_write(priv, HECC_CANME, 0);
hecc_write(priv, HECC_CANMD, 0);
hecc_write(priv, HECC_CANGAM, HECC_SET_REG);
hecc_write(priv, HECC_CANOPC, mbx_mask);
hecc_write(priv, HECC_CANMIL, HECC_SET_REG);
hecc_write(priv, HECC_CANGIM, HECC_CANGIM_DEF_MASK |
hecc_write(priv, HECC_CANMIL, 0);
hecc_write(priv, HECC_CANGIM,
hecc_write(priv, HECC_CANGIM, 0);
hecc_write(priv, HECC_CANMIM, 0);
hecc_write(priv, HECC_CANME, 0);
hecc_write(priv, HECC_CANTRS, mbx_mask);
hecc_write(priv, HECC_CANRMP, mbx_mask);
hecc_write(priv, HECC_CANES, HECC_CANES_FLAGS);
hecc_write(priv, HECC_CANGIM, 0);
hecc_write(priv, HECC_CANTA, mbx_mask);
hecc_write(priv, HECC_CANGIF1, handled);
hecc_write(priv, HECC_CANGIF0, handled);