# n32g4 This crate provides an autogenerated API for access to Nations Technologies N32G4 peripherals. The API is generated using [svd2rust] with patched svd files containing extensive type-safe support. For more information please see the [main repo]. Refer to the [documentation] for full details. [svd2rust]: https://github.com/japaric/svd2rust [main repo]: https://github.com/guineawheek/n32g4 [documentation]: https://docs.rs/n32g4/latest/n32g4/ ## Usage Each device supported by this crate is behind a feature gate so that you only compile the device(s) you want. To use, in your Cargo.toml: ```toml [dependencies.n32g4] version = "0.1.0" features = ["n32g401", "rt"] ``` The `rt` feature is optional and brings in support for `cortex-m-rt`. In your code: ```rust use n32g4::n32g401; let mut peripherals = n32g401::Peripherals::take().unwrap(); let gpioa = &peripherals.gpioa; gpioa.odr.modify(|_, w| w.odr0().set_bit()); ``` For full details on the autogenerated API, please see: https://docs.rs/svd2rust/0.31.5/svd2rust/#peripheral-api ## Supported Devices | Module | Devices | Links | |:------:|:-------:|:-----:| | n32g401 | N32G401 | [N32G401](https://www.nationstech.com/en/n31g401.html) | | n32g430 | N32G430 | [N32G430](https://www.nationstech.com/en/N32G430MCUs/) | | n32g432 | N32G432 | [N32G432](https://www.nationstech.com/en/N32G432IC/) | | n32g435 | N32G435 | [N32G435](https://www.nationstech.com/en/N32G435IC/) | | n32g4fr | N32G4FR | [N32G4FR](https://www.nationstech.com/en/N32G4FRMCUs/) | | n32g451 | N32G451 | [N32G451](https://www.nationstech.com/en/list-440-1.html) | | n32g452 | N32G452 | [N32G452](https://www.nationstech.com/en/N32G452MCUs/) | | n32g457 | N32G457 | [N32G457](https://www.nationstech.com/en/N32G457MCUs/) |