Cov pab pawg neeg ua haujlwm Rust Embedded, tsim los tsim cov thev naus laus zis los txhim kho qhov zoo thiab kev ruaj ntseg ntawm daim ntawv thov, firmware thiab tsav tsheb rau cov tshuab embedded, nthuav tawm thawj qhov kev tso tawm ntawm embedded-hal moj khaum, uas muab cov txheej txheem software cuam tshuam rau kev cuam tshuam nrog peripherals feem ntau siv. nrog microcontrollers (piv txwv li, hom yog muab rau kev ua haujlwm nrog GPIO, UART, SPI thiab I2C). Txoj haujlwm kev txhim kho yog sau rau hauv Rust thiab faib raws li Apache 2.0 daim ntawv tso cai.
Cov pob no tsim nyog rau kev sau cov tsav tsheb thoob ntiaj teb hauv Rust rau ntau lub sensors, cov ntxaij vab tshaus, drives thiab network adapters uas tsis khi rau cov qauv microcontroller, i.e. Tus tsav tsheb tsim los ntawm lub hauv paus ntawm embedded_hal tuaj yeem siv nrog txhua lub microcontrollers uas muaj HAL txheej muab rau hauv pob. Lub pob kuj muab qhov hloov tau yooj yim ua-hauv kev ua yuam kev - rau txhua hom kev ua yuam kev muaj qhov yuam kev, uas txhawb cov cuab yeej rau kev debugging thiab taug qab qhov ua rau yuam kev.
Embedded-hal 1.0 yog cim raws li thawj qhov ruaj khov tso tawm ntawm qhov project, uas tuaj yeem siv los tsim cov tsav tsheb ua haujlwm. Ua haujlwm kom ruaj khov API tau txuas ntxiv txij li xyoo 2020. Ntxiv nrog rau embedded-hal, ruaj khov tso tawm ntawm cov pob khoom pabcuam embedded-hal-async nrog cov khoom siv rau kev tsim asynchronous handlers thiab embedded-hal-nb nrog rau kev ua raws li lub xeev cov qauv kev xaiv tsa hauv hom kev xaiv tsa kuj tau tsim. Kuj tseem muaj cov pob khoom: embedded-hal-bus nrog cov cuab yeej ua haujlwm nrog SPI thiab I2C tsheb npav, embedded-tau nrog kev txhawb nqa rau CAN tsheb npav (Controller Area Network) thiab embedded-io nrog rau kev siv hom rau byte-oriented input / output , haum rau siv nrog UART.
Tau qhov twg los: opennet.ru
