Lines Matching refs:active
1263 case PrimitivePwle::active: { in composePwle()
1264 auto active = e.get<PrimitivePwle::active>(); in composePwle() local
1265 if (active.duration < 0 || in composePwle()
1266 active.duration > COMPOSE_PWLE_PRIMITIVE_DURATION_MAX_MS) { in composePwle()
1269 if (active.startAmplitude < PWLE_LEVEL_MIN || in composePwle()
1270 active.startAmplitude > PWLE_LEVEL_MAX || in composePwle()
1271 active.endAmplitude < PWLE_LEVEL_MIN || active.endAmplitude > PWLE_LEVEL_MAX) { in composePwle()
1274 if (active.startAmplitude > CS40L26_PWLE_LEVEL_MAX) { in composePwle()
1275 active.startAmplitude = CS40L26_PWLE_LEVEL_MAX; in composePwle()
1277 if (active.endAmplitude > CS40L26_PWLE_LEVEL_MAX) { in composePwle()
1278 active.endAmplitude = CS40L26_PWLE_LEVEL_MAX; in composePwle()
1281 if (active.startFrequency < PWLE_FREQUENCY_MIN_HZ || in composePwle()
1282 active.startFrequency > PWLE_FREQUENCY_MAX_HZ || in composePwle()
1283 active.endFrequency < PWLE_FREQUENCY_MIN_HZ || in composePwle()
1284 active.endFrequency > PWLE_FREQUENCY_MAX_HZ) { in composePwle()
1288 if (!((active.startAmplitude == prevEndAmplitude) && in composePwle()
1289 (active.startFrequency == prevEndFrequency))) { in composePwle()
1290 if (ch.constructActiveSegment(0, active.startAmplitude, active.startFrequency, in composePwle()
1297 if (active.startFrequency != active.endFrequency) { in composePwle()
1300 if (ch.constructActiveSegment(active.duration, active.endAmplitude, in composePwle()
1301 active.endFrequency, chirp) < 0) { in composePwle()
1306 prevEndAmplitude = active.endAmplitude; in composePwle()
1307 prevEndFrequency = active.endFrequency; in composePwle()
1308 totalDuration += active.duration; in composePwle()