package com.laseroptek.raman.data.model

import com.laseroptek.raman.const.Fluences
import com.laseroptek.raman.const.PulseDurations

// Preset to Voltage of LaserStatus
data class Preset(
    var pulseWidth: Float = PulseDurations[0],
    var fluence: Float = Fluences[0],
    var repetition: Float = 1f,

    var name: String = "",
    var priority: Int = 0,      // 0: none, 1:1, 2:2, 3:3, 4:4, 5:5, 6:6,
    var handPieceType: Int = 0,

    var id: Int = 0             // seq no 추가 시 max id + 1
)

/* cf)
data class LaserStatus(
    var laserStatus: Int = 0x53, // 0x53(Standby) or 0x52(Ready) or 0x4C(Laser on) or 0x49(Interval)
    var voltage: Int = 0,       // ascii 3 byte (PulseWidth() ms, Energy/Fluence() J/cm² : 13 단계 ) -> Votage
    var onTime: Float = 00.0f,  // xx.x (Pulse PulseWidth? 0.5, 1, 1.5, 4, 5, 10 .. 40 ms : 12 단계)
    var frequence: Float = 00.0f    // xx.x (Repetition? 1, 1.5, 2 10hz : 10 단계)
)
*/
