Searched refs:hx711_data (Results 1 – 1 of 1) sorted by relevance
94 struct hx711_data { struct121 static int hx711_cycle(struct hx711_data *hx711_data) in hx711_cycle() argument131 gpiod_set_value(hx711_data->gpiod_pd_sck, 1); in hx711_cycle()138 ndelay(hx711_data->data_ready_delay_ns); in hx711_cycle()146 gpiod_set_value(hx711_data->gpiod_pd_sck, 0); in hx711_cycle()153 ndelay(hx711_data->data_ready_delay_ns); in hx711_cycle()156 return gpiod_get_value(hx711_data->gpiod_dout); in hx711_cycle()159 static int hx711_read(struct hx711_data *hx711_data, int trailing_pulses) in hx711_read() argument166 val = gpiod_get_value(hx711_data->gpiod_dout); in hx711_read()172 ret = hx711_cycle(hx711_data); in hx711_read()[all …]