/* This API writes the available sensor specific commands to the sensor.  */
uint16_t bma4_set_command_register(uint8_t command_reg, struct bma4_dev *dev)
/* This API writes the available sensor specific commands to the sensor.  */
uint16_t bma4_set_command_register(uint8_t command_reg, struct bma4_dev *dev)
{
    uint16_t rslt  = 0;
    if (dev == NULL) {
        rslt |= BMA4_E_NULL_PTR;
    } else {
        rslt |= bma4_write_regs(BMA4_CMD_ADDR, &command_reg, 1, dev);
    }
    return rslt;
}