package com.cvte.va.sdk.mica.api;

import java.nio.charset.StandardCharsets;
import kotlin.reflect.w.internal.y0.n.c2.c;
import u.e;

/* JADX INFO: loaded from: classes.dex */
public class CommStatusManager {
    private static final String TAG = "CommStatusManager";
    private static CommStatusManager instance;

    private CommStatusManager() {
    }

    public static CommStatusManager getInstance() {
        if (instance == null) {
            instance = new CommStatusManager();
        }
        return instance;
    }

    public int getAngs(int i2) {
        return c.k(e.h().f9518b.f9508b, (i2 * 4) + 160);
    }

    public int getBfAng() {
        return c.k(e.h().f9518b.f9508b, 72);
    }

    public int getCfgAng() {
        return c.k(e.h().f9518b.f9508b, 68);
    }

    public float getCfgGain() {
        return Float.intBitsToFloat(c.k(e.h().f9518b.f9508b, 64));
    }

    public int getConfigStatus() {
        return c.k(e.h().f9518b.f9508b, 16);
    }

    public int getCurAng() {
        return c.k(e.h().f9518b.f9508b, 20);
    }

    public int getCurChannel() {
        return c.k(e.h().f9518b.f9508b, 32);
    }

    public float getCurGain() {
        return Float.intBitsToFloat(c.k(e.h().f9518b.f9508b, 44));
    }

    public float getCurPower() {
        return Float.intBitsToFloat(c.k(e.h().f9518b.f9508b, 56));
    }

    public String getDeviceVersion() {
        byte[] bArr = e.h().f9518b.f9508b;
        int i2 = 0;
        while (i2 < 16 && bArr[i2 + 140] != 0) {
            i2++;
        }
        byte[] bArr2 = new byte[i2];
        System.arraycopy(bArr, 140, bArr2, 0, i2);
        return new String(bArr2, StandardCharsets.UTF_8);
    }

    public int getMaxAng() {
        return c.k(e.h().f9518b.f9508b, 28);
    }

    public int getMaxChannel() {
        return c.k(e.h().f9518b.f9508b, 40);
    }

    public float getMaxGain() {
        return Float.intBitsToFloat(c.k(e.h().f9518b.f9508b, 52));
    }

    public int getMinAng() {
        return c.k(e.h().f9518b.f9508b, 24);
    }

    public int getMinChannel() {
        return c.k(e.h().f9518b.f9508b, 36);
    }

    public float getMinGain() {
        return Float.intBitsToFloat(c.k(e.h().f9518b.f9508b, 48));
    }

    public int getNumAngs() {
        return c.k(e.h().f9518b.f9508b, 156);
    }

    public float getRefAmp() {
        return Float.intBitsToFloat(c.k(e.h().f9518b.f9508b, 60));
    }

    public int getVoiceStatus() {
        return c.k(e.h().f9518b.f9508b, 12);
    }

    public boolean requestStatus() {
        return e.h().f9518b.b();
    }
}
