Searched refs:hx711_data (Results 1 – 1 of 1) sorted by relevance
79 struct hx711_data { struct102 static int hx711_cycle(struct hx711_data *hx711_data) in hx711_cycle() argument112 gpiod_set_value(hx711_data->gpiod_pd_sck, 1); in hx711_cycle()119 ndelay(hx711_data->data_ready_delay_ns); in hx711_cycle()127 gpiod_set_value(hx711_data->gpiod_pd_sck, 0); in hx711_cycle()134 ndelay(hx711_data->data_ready_delay_ns); in hx711_cycle()137 return gpiod_get_value(hx711_data->gpiod_dout); in hx711_cycle()140 static int hx711_read(struct hx711_data *hx711_data) in hx711_read() argument144 int val = gpiod_get_value(hx711_data->gpiod_dout); in hx711_read()152 ret = hx711_cycle(hx711_data); in hx711_read()[all …]