Example Application 1.0.0
A Zephyr-based example application
Loading...
Searching...
No Matches
blink_driver_api Struct Reference

Blink driver class operations. More...

#include <blink.h>

Data Fields

int(* set_period_ms )(const struct device *dev, unsigned int period_ms)
 Configure the LED blink period.

Detailed Description

Blink driver class operations.

Field Documentation

◆ set_period_ms

int(* blink_driver_api::set_period_ms) (const struct device *dev, unsigned int period_ms)

Configure the LED blink period.

Parameters
devBlink device instance.
period_msPeriod of the LED blink in milliseconds, 0 to disable blinking.
Return values
0if successful.
-EINVALif period_ms can not be set.
-errnoOther negative errno code on failure.

The documentation for this struct was generated from the following file: