Ejemplo n.º 1
0
static attr_value_t
get_stop(void          *arg,
         conf_object_t *self,
         attr_value_t  *idx)
{
    ((uart_sampler_t *)self)->active = 0;
    return SIM_make_attr_nil();
}
Ejemplo n.º 2
0
static attr_value_t
get_timing_model_attribute(void *dont_care, conf_object_t *obj, attr_value_t *idx)
{
        consistency_controller_object_t *cc = (consistency_controller_object_t *)obj;

        if (cc->next_level_object)
                return SIM_make_attr_object(cc->next_level_object);

        return SIM_make_attr_nil();
}
Ejemplo n.º 3
0
static attr_value_t
get_close(void          *arg,
          conf_object_t *self,
          attr_value_t  *idx)
{
    uart_sampler_t *s = (uart_sampler_t *)self;

    s->active = 0;
    if (sampler_fini(&s->sampler)) {
        SIM_frontend_exception(SimExc_General,
                               "Error flusing the dangling samples.");
    }
    return SIM_make_attr_nil();
}