HAL
HAL layer above libopencm3 library.
 All Files Functions Macros Groups Pages
pin_v1.h File Reference

Go to the source code of this file.

Functions

INLINE uint32_t _pin_port (const uint32_t pin)
 
INLINE uint32_t _pin_pin (const uint32_t pin)
 
INLINE uint32_t _pin_pinno (const uint32_t pin)
 
INLINE bool pin_get (const uint32_t pin)
 Get the actual pin state. More...
 
INLINE void pin_set (const uint32_t pin, const bool val)
 Set the pin state. More...
 
INLINE void pin_toggle (const uint32_t pin)
 Toggle the pin level state. More...
 
INLINE void pin_pull_disable (const uint32_t pin)
 Disable pullups or pulldowns on specified pin. More...
 
INLINE void pin_pull_down (const uint32_t pin)
 Set PullDown on the pin. More...
 
INLINE void pin_pull_up (const uint32_t pin)
 Set PullUp on the pin. More...
 
INLINE void pin_output_pushpull (const uint32_t pin)
 Set pin to GPIO Output mode, source and sink. More...
 
INLINE void pin_output_opendrain (const uint32_t pin)
 Set pin to GPIO Output mode, sink only. More...
 
INLINE void pin_af_pushpull (const uint32_t pin)
 Set pin to AuxFn Output mode, source and sink. More...
 
INLINE void pin_af_opendrain (const uint32_t pin)
 Set pin to AuxFn Output mode, sink only. More...
 
INLINE void pin_input (const uint32_t pin)
 Set pin to Input mode. More...
 
INLINE void pin_analog (const uint32_t pin)
 Set pin to Analog mode. More...
 
INLINE void pin_speed_low (const uint32_t pin)
 Set pin speed to slowest mode. More...
 
INLINE void pin_speed_medium (const uint32_t pin)
 Set pin speed to medium speed mode. More...
 
INLINE void pin_speed_fast (const uint32_t pin)
 Set pin speed to fast mode. More...
 
INLINE void pin_speed_high (const uint32_t pin)
 Set pin speed to highest mode. More...
 
INLINE void pin_af_map (const uint32_t pin, const uint32_t af)
 Map the alternate function to the pin. More...
 

Function Documentation

INLINE uint32_t _pin_pin ( const uint32_t  pin)

Definition at line 35 of file pin_v1.h.

INLINE uint32_t _pin_pinno ( const uint32_t  pin)

Definition at line 40 of file pin_v1.h.

INLINE uint32_t _pin_port ( const uint32_t  pin)

Definition at line 30 of file pin_v1.h.