Added a GPIO to power on/off for external I2C sensor(s) (with LEDs)
Dependencies: UniGraphic mbed vt100
18-Jun-2018 外部センサの電源オン・オフ機能は下位互換の為に無効になっていました。 この版で再度有効にしました。
afLib/afSPI.h@1:8d65cfc3a2e2, 2018-06-18 (annotated)
- Committer:
- Rhyme
- Date:
- Mon Jun 18 01:56:00 2018 +0000
- Revision:
- 1:8d65cfc3a2e2
- Parent:
- 0:846e2321c637
External sensor power on/off function enabled. (Previously disabled)
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Rhyme | 0:846e2321c637 | 1 | /** |
Rhyme | 0:846e2321c637 | 2 | * Copyright 2015 Afero, Inc. |
Rhyme | 0:846e2321c637 | 3 | * |
Rhyme | 0:846e2321c637 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
Rhyme | 0:846e2321c637 | 5 | * you may not use this file except in compliance with the License. |
Rhyme | 0:846e2321c637 | 6 | * You may obtain a copy of the License at |
Rhyme | 0:846e2321c637 | 7 | * |
Rhyme | 0:846e2321c637 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
Rhyme | 0:846e2321c637 | 9 | * |
Rhyme | 0:846e2321c637 | 10 | * Unless required by applicable law or agreed to in writing, software |
Rhyme | 0:846e2321c637 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
Rhyme | 0:846e2321c637 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
Rhyme | 0:846e2321c637 | 13 | * See the License for the specific language governing permissions and |
Rhyme | 0:846e2321c637 | 14 | * limitations under the License. |
Rhyme | 0:846e2321c637 | 15 | */ |
Rhyme | 0:846e2321c637 | 16 | #ifndef AFLIB_AFSPI_H |
Rhyme | 0:846e2321c637 | 17 | #define AFLIB_AFSPI_H |
Rhyme | 0:846e2321c637 | 18 | |
Rhyme | 0:846e2321c637 | 19 | class afSPI { |
Rhyme | 0:846e2321c637 | 20 | public: |
Rhyme | 0:846e2321c637 | 21 | virtual void begin() = 0; |
Rhyme | 0:846e2321c637 | 22 | virtual void beginSPI() = 0; |
Rhyme | 0:846e2321c637 | 23 | virtual void endSPI() = 0; |
Rhyme | 0:846e2321c637 | 24 | virtual void transfer(char *bytes,int len) = 0; |
Rhyme | 0:846e2321c637 | 25 | }; |
Rhyme | 0:846e2321c637 | 26 | |
Rhyme | 0:846e2321c637 | 27 | #endif |
Rhyme | 0:846e2321c637 | 28 |