You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
598 B
28 lines
598 B
import type { Message } from "@bufbuild/protobuf";
|
|
import { Protobuf } from "@meshtastic/js";
|
|
import { IsBoolean, IsEnum, IsInt } from "class-validator";
|
|
|
|
export class AudioValidation
|
|
implements Omit<Protobuf.ModuleConfig.ModuleConfig_AudioConfig, keyof Message>
|
|
{
|
|
@IsBoolean()
|
|
codec2Enabled: boolean;
|
|
|
|
@IsInt()
|
|
pttPin: number;
|
|
|
|
@IsEnum(Protobuf.ModuleConfig.ModuleConfig_AudioConfig_Audio_Baud)
|
|
bitrate: Protobuf.ModuleConfig.ModuleConfig_AudioConfig_Audio_Baud;
|
|
|
|
@IsInt()
|
|
i2sWs: number;
|
|
|
|
@IsInt()
|
|
i2sSd: number;
|
|
|
|
@IsInt()
|
|
i2sDin: number;
|
|
|
|
@IsInt()
|
|
i2sSck: number;
|
|
}
|
|
|