Add audio config

This commit is contained in:
Sacha Weatherstone
2023-01-08 19:27:04 +10:00
parent 8074595c70
commit c0f7bc4741
3 changed files with 153 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
import { IsBoolean, IsEnum, IsInt } from "class-validator";
import { Protobuf } from "@meshtastic/meshtasticjs";
export class AudioValidation implements Protobuf.ModuleConfig_AudioConfig {
@IsBoolean()
codec2Enabled: boolean;
@IsInt()
pttPin: number;
@IsEnum(Protobuf.ModuleConfig_AudioConfig_Audio_Baud)
bitrate: Protobuf.ModuleConfig_AudioConfig_Audio_Baud;
@IsInt()
i2SWs: number;
@IsInt()
i2SSd: number;
@IsInt()
i2SDin: number;
@IsInt()
i2SSck: number;
}