Searched refs:hx711_data (Results 1 – 1 of 1) sorted by relevance
79 struct hx711_data { struct101 static int hx711_cycle(struct hx711_data *hx711_data) in hx711_cycle() argument111 gpiod_set_value(hx711_data->gpiod_pd_sck, 1); in hx711_cycle()118 ndelay(hx711_data->data_ready_delay_ns); in hx711_cycle()126 gpiod_set_value(hx711_data->gpiod_pd_sck, 0); in hx711_cycle()133 ndelay(hx711_data->data_ready_delay_ns); in hx711_cycle()136 return gpiod_get_value(hx711_data->gpiod_dout); in hx711_cycle()139 static int hx711_read(struct hx711_data *hx711_data) in hx711_read() argument143 int val = gpiod_get_value(hx711_data->gpiod_dout); in hx711_read()151 ret = hx711_cycle(hx711_data); in hx711_read()[all …]