imrishabh18/smart-lock

This code defines a hardware platform integrating a wireless microcontroller with radio transceivers, NFC and BLE modules, flash memory, level shifters, and power management components interconnected via GPIOs, SPI, and other signals.

Version
0.0.1
License
unset
Stars
0

dist/index.cjs

'use strict';

var jsxRuntime = require('react/jsx-runtime');
var tscircuit_ti = require('@tsci/tscircuit.ti');

var index = () => (jsxRuntime.jsxs("board", { children: [jsxRuntime.jsx("schematicsheet", { name: "radio_transceiver", displayName: "Radio Transceiver", sheetIndex: 0 }), jsxRuntime.jsx("schematicsheet", { name: "radio_level_shifter", displayName: "Level Shifter", sheetIndex: 1 }), jsxRuntime.jsx("schematicsheet", { name: "ble_module", displayName: "BLE Module", sheetIndex: 2 }), jsxRuntime.jsx("schematicsheet", { name: "flash", displayName: "Flash", sheetIndex: 3 }), jsxRuntime.jsx("schematicsheet", { name: "nfc", displayName: "NFC", sheetIndex: 4 }), jsxRuntime.jsx("schematicsheet", { name: "nfc_level_shifter", displayName: "Signal Level Shift", sheetIndex: 5 }), jsxRuntime.jsx("schematicsheet", { name: "authenticator", displayName: "Authenticator", sheetIndex: 6 }), jsxRuntime.jsx("schematicsheet", { name: "pmic", displayName: "PMIC", sheetIndex: 7 }), jsxRuntime.jsx(tscircuit_ti.WirelessMCU_CC3235SF, { name: "radio_transceiver", schSheetName: "radio_transceiver" }), jsxRuntime.jsx(tscircuit_ti.LevelShifter_TXB0104, { name: "radio_level_shifter", schSheetName: "radio_level_shifter" }), jsxRuntime.jsx(tscircuit_ti.WirelessMCU_CC2745R10, { name: "ble_module", schSheetName: "ble_module" }), jsxRuntime.jsx(tscircuit_ti.FlashMemory_W25Q128JVSIQ, { name: "flash", schSheetName: "flash" }), jsxRuntime.jsx(tscircuit_ti.RFIDReader_TRF7960, { name: "nfc", schSheetName: "nfc" }), jsxRuntime.jsx(tscircuit_ti.LevelShifter_TXS0102, { name: "nfc_level_shifter", schSheetName: "nfc_level_shifter" }), jsxRuntime.jsx(tscircuit_ti.Microcontroller_MSPM0G3507, { name: "authenticator", schSheetName: "authenticator" }), jsxRuntime.jsx(tscircuit_ti.PowerManagement_TPS6521835, { name: "pmic", schSheetName: "pmic" }), jsxRuntime.jsx("trace", { from: ".radio_transceiver > .U2 > .FLASH_SPI_CLK", to: ".radio_level_shifter > .U1 > .IO_A1" }), jsxRuntime.jsx("trace", { from: ".radio_transceiver > .U2 > .GPIO10", to: ".radio_level_shifter > .U1 > .IO_A2" }), jsxRuntime.jsx("trace", { from: ".radio_level_shifter > .U1 > .IO_B1", to: ".ble_module > .U1 > .GPIO_DIO0" }), jsxRuntime.jsx("trace", { from: ".radio_level_shifter > .U1 > .IO_B2", to: ".ble_module > .U1 > .GPIO_DIO1" }), jsxRuntime.jsx("trace", { from: ".ble_module > .U1 > .GPIO_DIO2", to: ".flash > .U1 > .SPI_SCK" }), jsxRuntime.jsx("trace", { from: ".ble_module > .U1 > .GPIO_DIO3", to: ".flash > .U1 > .SPI_CS" }), jsxRuntime.jsx("trace", { from: ".radio_transceiver > .U2 > .GPIO11", to: ".nfc > .U1 > .EN" }), jsxRuntime.jsx("trace", { from: ".radio_transceiver > .U2 > .GPIO12", to: ".nfc > .U1 > .SPI_SCK" }), jsxRuntime.jsx("trace", { from: ".radio_transceiver > .U2 > .GPIO13", to: ".nfc > .U1 > .IRQ" }), jsxRuntime.jsx("trace", { from: ".nfc > .U1 > .MOD", to: ".nfc_level_shifter > .U1 > .OE" }), jsxRuntime.jsx("trace", { from: ".nfc > .U1 > .SPI_MOSI", to: ".nfc_level_shifter > .U1 > .IO_A1" }), jsxRuntime.jsx("trace", { from: ".nfc > .U1 > .SPI_MISO", to: ".nfc_level_shifter > .U1 > .IO_A2" }), jsxRuntime.jsx("trace", { from: ".nfc_level_shifter > .U1 > .IO_B1", to: ".ble_module > .U1 > .GPIO_DIO4" }), jsxRuntime.jsx("trace", { from: ".nfc_level_shifter > .U1 > .IO_B2", to: ".ble_module > .U1 > .GPIO_DIO5" }), jsxRuntime.jsx("trace", { from: ".nfc > .U1 > .SYS_CLK", to: ".authenticator > .U1 > .GPIO_PA0" }), jsxRuntime.jsx("trace", { from: ".ble_module > .U1 > .GPIO_DIO7", to: ".pmic > .U1 > .GPO2" })] }));

module.exports = index;