/* Manage the Master DRDY signal on INT1 pad..  */
int32_t lsm6dsl_sh_drdy_on_int1_get(stmdev_ctx_t *ctx, uint8_t *val)
/* Manage the Master DRDY signal on INT1 pad..  */
int32_t lsm6dsl_sh_drdy_on_int1_get(stmdev_ctx_t *ctx, uint8_t *val)
{
  lsm6dsl_master_config_t master_config;
  int32_t ret;
  ret = lsm6dsl_read_reg(ctx, LSM6DSL_MASTER_CONFIG,
                         (uint8_t*)&master_config, 1);
  *val = master_config.drdy_on_int1;
  return ret;
}