Prusa MINI Firmware overview
solenoid.h File Reference

Go to the source code of this file.

Functions

void enable_solenoid_on_active_extruder ()
 
void disable_all_solenoids ()
 
void enable_solenoid (const uint8_t num)
 
void disable_solenoid (const uint8_t num)
 

Function Documentation

◆ enable_solenoid_on_active_extruder()

void enable_solenoid_on_active_extruder ( )

Marlin 3D Printer Firmware Copyright (c) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]

Based on Sprinter and grbl. Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ disable_all_solenoids()

void disable_all_solenoids ( )
79  {
81  #if HAS_SOLENOID(1)
83  #endif
84  #if HAS_SOLENOID(2)
86  #endif
87  #if HAS_SOLENOID(3)
89  #endif
90  #if HAS_SOLENOID(4)
92  #endif
93  #if HAS_SOLENOID(5)
95  #endif
96 }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ enable_solenoid()

void enable_solenoid ( const uint8_t  num)
75 { set_solenoid(num, true); }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ disable_solenoid()

void disable_solenoid ( const uint8_t  num)
76 { set_solenoid(num, false); }
Here is the call graph for this function:
Here is the caller graph for this function:
enable_solenoid
void enable_solenoid(const uint8_t num)
Definition: solenoid.cpp:75
netif::num
u8_t num
Definition: netif.h:309
set_solenoid
static void set_solenoid(const uint8_t num, const bool active)
Definition: solenoid.cpp:38
active_extruder
constexpr uint8_t active_extruder
Definition: motion.h:107
disable_solenoid
void disable_solenoid(const uint8_t num)
Definition: solenoid.cpp:76