ac_power/
lib.rs

1// Copyright 2023 Enphase Energy, Inc and Universal Interoperability for
2// Grid-Forming Inverters (UNIFI) Consortium.
3//
4//    Licensed under the Apache License, Version 2.0 (the "License");
5//    you may not use this file except in compliance with the License.
6//    You may obtain a copy of the License at
7//
8//        http://www.apache.org/licenses/LICENSE-2.0
9//
10//    Unless required by applicable law or agreed to in writing, software
11//    distributed under the License is distributed on an "AS IS" BASIS,
12//    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13//    See the License for the specific language governing permissions and
14//    limitations under the License.
15
16#![doc = include_str!("../README.md")]
17#![cfg_attr(not(test), no_std)]
18
19pub mod constants;
20mod newtypes;
21pub mod number;
22mod pq;
23mod reference_frames;
24pub mod trig;
25pub mod wavegen;
26
27pub use newtypes::{Current, Impedance, Power, Voltage};
28pub use pq::Pq;
29pub use reference_frames::{Abc, AlphaBeta, AlphaBeta0, Dq, Dq0, Polar};
30
31#[cfg(test)]
32mod tests {}