{
  "kind": "合成输入与数学模型输出，非设备实测",
  "article": "https://qifudev.com/article/storage-mib-versus-mb/",
  "tool": "https://qifudev.com/tools/sample-storage/",
  "formula": "帧字节 = 通道数 × 存储位宽/8 + 帧开销；总字节 = 帧字节 × 采样率 × 时间",
  "inputs": [
    {
      "name": "每通道采样率",
      "key": "rate",
      "value": 1000,
      "unit": "Hz"
    },
    {
      "name": "每帧通道数",
      "key": "channels",
      "value": 2,
      "unit": "个"
    },
    {
      "name": "每通道实际存储位宽",
      "key": "storageBits",
      "value": 16,
      "unit": "bit"
    },
    {
      "name": "每帧时间戳等开销",
      "key": "headerBytes",
      "value": 4,
      "unit": "byte"
    },
    {
      "name": "持续记录时间",
      "key": "seconds",
      "value": 125,
      "unit": "s"
    }
  ],
  "outputs": [
    {
      "name": "一帧存储长度",
      "key": "bytesPerFrame",
      "value": 8,
      "unit": "byte"
    },
    {
      "name": "连续写入字节率",
      "key": "bytesPerSecond",
      "value": 8000,
      "unit": "byte/s"
    },
    {
      "name": "记录总长度",
      "key": "totalBytes",
      "value": 1000000,
      "unit": "byte"
    },
    {
      "name": "二进制容量",
      "key": "totalMiB",
      "value": 0.95367431640625,
      "unit": "MiB"
    }
  ],
  "warnings": [],
  "assumptions": "不包含文件系统元数据、磨损均衡、压缩、文本编码与突发缓存需求。存储位宽必须整字节，位打包格式需另建模型。持续写入速度不代表SD卡每次写入延迟都有界。",
  "source": {
    "label": "乐鑫 ADC 连续采样驱动与数据格式",
    "url": "https://docs.espressif.com/projects/esp-idf/en/stable/esp32/api-reference/peripherals/adc/adc_continuous.html"
  },
  "measured": {
    "device": null,
    "firmware": null,
    "environment": null,
    "instrument": null,
    "result": null,
    "verdict": null
  }
}
