Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
LedPin< Defs > Struct Template Reference

Defines a GPIO output pin with high-current drive and low initialization level. More...

#include <Lpc17xx40xxGPIO.hxx>

Inheritance diagram for LedPin< Defs >:
GpioOutputPin< Defs, false > GpioOutputPin< Defs, false > GpioOutputPin< Defs, false > GpioShared< Defs > GpioShared< Defs > GpioShared< Defs >

Static Public Member Functions

static void hw_init ()
 Initialized the hardware pin.
 
- Static Public Member Functions inherited from GpioOutputPin< Defs, false >
static void hw_init ()
 Initializes the hardware pin.
 
static void hw_init ()
 Initializes the hardware pin.
 
static void hw_init ()
 Initializes the hardware pin.
 
static void hw_init ()
 Initializes the hardware pin.
 
static void hw_init ()
 Initializes the hardware pin.
 
static void hw_init ()
 Initializes the hardware pin.
 
static void hw_init ()
 Initializes the hardware pin.
 
static void hw_init ()
 Initializes the hardware pin.
 
static void hw_set_to_safe ()
 Sets the hardware pin to a safe value.
 
static void hw_set_to_safe ()
 Sets the hardware pin to a safe value.
 
static void hw_set_to_safe ()
 Sets the hardware pin to a safe value.
 
static void hw_set_to_safe ()
 Sets the output pin to a safe value.
 
static void hw_set_to_safe ()
 Sets the output pin to a safe value.
 
static void hw_set_to_safe ()
 Sets the output pin to a safe value.
 
static void hw_set_to_safe ()
 Sets the hardware pin to a safe value.
 
static void hw_set_to_safe ()
 Sets the hardware pin to a safe value.
 
static void set (bool value)
 Sets the output pinm.
 
static void set (bool value)
 Sets the output pin.
 
static void set (bool value)
 Sets the output pinm.
 
static void set (bool value)
 Sets the output pin to a defined value.
 
static void set (bool value)
 Sets the output pinm.
 
static void toggle ()
 Toggles the state of the pin to the opposite of what it is currently.
 
static void toggle ()
 Changes the value of an output pin.
 
static constexpr const Gpioinstance ()
 
static constexpr const Gpioinstance ()
 
static constexpr const Gpioinstance ()
 
static bool get ()
 
static bool is_output ()
 
static bool is_output ()
 
- Static Public Member Functions inherited from GpioShared< Defs >
static void unlock ()
 Used to unlock special consideration pins such as JTAG or NMI pins.
 
static void lock ()
 Used to lock special consideration pins such as JTAG or NMI pins.
 
static void set (bool value)
 Sets the output pin to a specified value;.
 
static bool get ()
 
static void toggle ()
 Changes the value of an output pin.
 
static constexpr uint32_t ptr_address ()
 
static constexpr const Gpioinstance ()
 

Detailed Description

template<class Defs>
struct LedPin< Defs >

Defines a GPIO output pin with high-current drive and low initialization level.

Defines a GPIO output pin for driving an LED.

Do not use this class directly. Use GPIO_PIN instead.

The MCU must be in spec for the necessary output current.

Do not use this class directly. Use GPIO_PIN instead.

Definition at line 148 of file Lpc17xx40xxGPIO.hxx.

Member Function Documentation

◆ hw_init()

template<class Defs >
static void LedPin< Defs >::hw_init ( )
inlinestatic

Initialized the hardware pin.

Definition at line 304 of file TivaGPIO.hxx.


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