2 * UDI Driver Helper Macros
6 #ifndef _HELPERS_GFX_H_
7 #define _HELPERS_GFX_H_
18 const gfxhelpers_op_t *ops;
19 } gfxhelpers_op_map_t;
21 static inline udi_ubit32_t gfxhelpers_get_engine_op(
22 const gfxhelpers_op_map_t *map, udi_index_t index, udi_index_t prop
25 if( index >= map->op_count ) {
29 case UDI_GFX_PROP_OPERATOR_OPCODE: return map->ops[index].op;
30 case UDI_GFX_PROP_OPERATOR_ARG_1: return map->ops[index].arg_1;
31 case UDI_GFX_PROP_OPERATOR_ARG_2: return map->ops[index].arg_2;
32 case UDI_GFX_PROP_OPERATOR_ARG_3: return map->ops[index].arg_3;
37 static inline void gfxhelpers_return_range_simple(
38 udi_gfx_range_connector_ack_op_t *callback, udi_gfx_range_cb_t *cb,
39 udi_ubit32_t min, udi_ubit32_t max, udi_ubit32_t step
45 static inline void gfxhelpers_return_range_set(
46 udi_gfx_range_connector_ack_op_t *callback, udi_gfx_range_cb_t *cb,
47 udi_ubit32_t count, ...
53 static inline void gfxhelpers_return_range_fixed(
54 udi_gfx_range_connector_ack_op_t *callback, udi_gfx_range_cb_t *cb,
58 gfxhelpers_return_range_simple(callback, cb, value, value, 1);