Lines Matching full:polarity
27 u32 polarity; member
100 /* Setup LP timer encoder/counter and polarity, without prescaler */ in stm32_lptim_setup()
105 val |= FIELD_PREP(STM32_LPTIM_CKPOL, enable ? priv->polarity : 0); in stm32_lptim_setup()
172 if (priv->polarity > 1) in stm32_lptim_read_raw()
232 return priv->polarity; in stm32_lptim_cnt_get_polarity()
244 priv->polarity = type; in stm32_lptim_cnt_set_polarity()
308 IIO_ENUM("polarity", IIO_SEPARATE, &stm32_lptim_cnt_polarity_en),
309 IIO_ENUM_AVAILABLE("polarity", &stm32_lptim_cnt_polarity_en),
334 IIO_ENUM("polarity", IIO_SEPARATE, &stm32_lptim_cnt_polarity_en),
335 IIO_ENUM_AVAILABLE("polarity", &stm32_lptim_cnt_polarity_en),
372 /* Index must match with stm32_lptim_cnt_polarity[] (priv->polarity) */
406 if (priv->polarity == STM32_LPTIM_SYNAPSE_ACTION_BOTH_EDGES) { in stm32_lptim_cnt_function_get()
429 priv->polarity = STM32_LPTIM_SYNAPSE_ACTION_BOTH_EDGES; in stm32_lptim_cnt_function_set()
530 *action = priv->polarity; in stm32_lptim_cnt_action_get()
535 *action = priv->polarity; in stm32_lptim_cnt_action_get()
558 /* only set polarity when in counter mode (on input 1) */ in stm32_lptim_cnt_action_set()
565 priv->polarity = action; in stm32_lptim_cnt_action_set()