mikroSDK Reference Manual
drv_digital_out.h File Reference

Go to the source code of this file.

Data Structures

struct  digital_out_t
 Digital output driver context structure, consisted of the following fields : More...
 

Enumerations

enum  digital_out_err_t
 

Functions

err_t digital_out_init (digital_out_t *out, pin_name_t name)
 Initialize GPIO pin. More...
 
err_t digital_out_high (digital_out_t *out)
 Set pin state to logical high. More...
 
err_t digital_out_low (digital_out_t *out)
 Set pin state to logical low. More...
 
err_t digital_out_toggle (digital_out_t *out)
 Toggle pin state. More...
 
err_t digital_out_write (digital_out_t *out, uint8_t value)
 Set pin state. More...
 

Enumeration Type Documentation

◆ digital_out_err_t

Return values.

Enumerator
DIGITAL_OUT_SUCCESS 

Success.

DIGITAL_OUT_UNSUPPORTED_PIN 

Error.