ODeV framework
v2
|
<DESCRIPTIOM> More...
Go to the source code of this file.
Data Structures | |
struct | _NucleoDriver |
struct | _NucleoDriverParams |
Typedefs | |
typedef struct _NucleoDriver | NucleoDriver |
typedef struct _NucleoDriverParams | NucleoDriverParams |
Functions | |
IDriver * | NucleoDriverAlloc () |
sys_error_code_t | NucleoDriverSetLed (NucleoDriver *this, boolean_t bON) |
sys_error_code_t | NucleoDriverToggleLed (NucleoDriver *this) |
boolean_t | NucleoDriverIsButtonPressed (NucleoDriver *this) |
sys_error_code_t | NucleoDriverWaitForButtonEvent (NucleoDriver *this, boolean_t *pbButtonPressed) |
<DESCRIPTIOM>
Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); You may not use this file except in compliance with the License. You may obtain a copy of the License at:
http://www.st.com/software_license_agreement_liberty_v2
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
typedef struct _NucleoDriver NucleoDriver |
Create type name for _NucleoDriver.
typedef struct _NucleoDriverParams NucleoDriverParams |
Initialization parameters for the driver.
IDriver* NucleoDriverAlloc | ( | ) |
Allocate an instance of NucleoDriver. The driver is allocated in the FreeRTOS heap.
|
inline |
Get the status of the push button.
this | [IN] specifies a pointer to a driver object. |
TRUE
if the push button is pressed, FALSE
otherwise
|
inline |
Turn the LED ON or OFF
this | [IN] specifies a pointer to a driver object. |
bON | [IN] specifies the status of the LED. TRUE to turn the LED ON, FALSE otherwise. |
|
inline |
Toggle the LED.
this | [IN] specifies a pointer to a driver object. |
sys_error_code_t NucleoDriverWaitForButtonEvent | ( | NucleoDriver * | this, |
boolean_t * | pbButtonPressed | ||
) |
Block the calling task until the push button is pressed or released.
this | [IN] specifies a pointer to a driver object. |
pbButtonPressed | [OUT] specify the status of the push button. |