Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: UniGraphic mbed vt100
sensors/PSE530.h@0:0b6732b53bf4, 2018-04-24 (annotated)
- Committer:
- Rhyme
- Date:
- Tue Apr 24 08:58:33 2018 +0000
- Revision:
- 0:0b6732b53bf4
Temporary Connector Reversed Version
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Rhyme | 0:0b6732b53bf4 | 1 | #ifndef _PSE530_H_ |
| Rhyme | 0:0b6732b53bf4 | 2 | #define _PSE530_H_ |
| Rhyme | 0:0b6732b53bf4 | 3 | #include "mbed.h" |
| Rhyme | 0:0b6732b53bf4 | 4 | |
| Rhyme | 0:0b6732b53bf4 | 5 | /** |
| Rhyme | 0:0b6732b53bf4 | 6 | * PSE530 Pressure Sensor |
| Rhyme | 0:0b6732b53bf4 | 7 | */ |
| Rhyme | 0:0b6732b53bf4 | 8 | |
| Rhyme | 0:0b6732b53bf4 | 9 | class PSE530 { |
| Rhyme | 0:0b6732b53bf4 | 10 | public: |
| Rhyme | 0:0b6732b53bf4 | 11 | /** |
| Rhyme | 0:0b6732b53bf4 | 12 | * Constructor |
| Rhyme | 0:0b6732b53bf4 | 13 | */ |
| Rhyme | 0:0b6732b53bf4 | 14 | PSE530(AnalogIn *ain) ; |
| Rhyme | 0:0b6732b53bf4 | 15 | |
| Rhyme | 0:0b6732b53bf4 | 16 | /** |
| Rhyme | 0:0b6732b53bf4 | 17 | * destructor |
| Rhyme | 0:0b6732b53bf4 | 18 | */ |
| Rhyme | 0:0b6732b53bf4 | 19 | ~PSE530(void) ; |
| Rhyme | 0:0b6732b53bf4 | 20 | |
| Rhyme | 0:0b6732b53bf4 | 21 | /** |
| Rhyme | 0:0b6732b53bf4 | 22 | * getPressure |
| Rhyme | 0:0b6732b53bf4 | 23 | * @returns float pressure in kgf/cm2 |
| Rhyme | 0:0b6732b53bf4 | 24 | */ |
| Rhyme | 0:0b6732b53bf4 | 25 | float getPressure(void) ; |
| Rhyme | 0:0b6732b53bf4 | 26 | private: |
| Rhyme | 0:0b6732b53bf4 | 27 | AnalogIn *_ain ; |
| Rhyme | 0:0b6732b53bf4 | 28 | } ; |
| Rhyme | 0:0b6732b53bf4 | 29 | |
| Rhyme | 0:0b6732b53bf4 | 30 | #endif /* _PSE530_H_ */ |