emcfan.c | 292 snprintf(pole_name,sizeof(pole_name),"poles%d",i+1); 295 SYSCTL_DESCR("Number of poles"), emcfan_verify_sysctl, 0, 655 int poles; local in function:emcfan_refresh_210_346_230x_tach 835 /* The number of poles is a sysctl setting */ 836 poles = sc->sc_num_poles[sc->sc_sensor_instances[instance].sc_i_member - 1]; 838 DPRINTF(sc, 2, ("%s: instance=%d, ftach=%d, m=%d, edges=%d, poles=%d, tach_high=%d 0x%02X, tach_low=%d 0x%02X, count=%d\n", __func__, 839 instance, ftach, m, edges, poles, tach_high, tach_high, tach_low, tach_low, count)); 843 * rpm = 1/poles * ((edges - 1) / count * 1/m) * ftach * 60 853 ip1 = 10000 / poles; 855 printf("poles: %d ; ip1: %d\n",poles,ip1) [all...] |