amiro-os / include / amiro / power / tps62113.hpp @ ff7ad65b
History | View | Annotate | Download (421 Bytes)
| 1 | 58fe0e0b | Thomas Schöpping | /*
|
|---|---|---|---|
| 2 | * TPS62113 - StepDown Converter
|
||
| 3 | */
|
||
| 4 | |||
| 5 | #ifndef AMIRO_TPS62113_H_
|
||
| 6 | #define AMIRO_TPS62113_H_
|
||
| 7 | |||
| 8 | namespace amiro {
|
||
| 9 | |||
| 10 | template <uintptr_t PadGrp, uint32_t Pad>
|
||
| 11 | class TPS62113 |
||
| 12 | {
|
||
| 13 | public:
|
||
| 14 | TPS62113() |
||
| 15 | {}
|
||
| 16 | |||
| 17 | ~TPS62113() |
||
| 18 | {}
|
||
| 19 | |||
| 20 | static void enable(const bool en = true) |
||
| 21 | {
|
||
| 22 | palWritePad((GPIO_TypeDef*)PadGrp, Pad, (en? PAL_HIGH : PAL_LOW)); |
||
| 23 | return;
|
||
| 24 | } |
||
| 25 | }; |
||
| 26 | |||
| 27 | } |
||
| 28 | |||
| 29 | #endif /* AMIRO_TPS62113_H_ */ |