MBSP

Microcontroller Board Support Package

User Tools

Site Tools


digital_output_group

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
digital_output_group [ 17.08.2025 05:34] – created larsdigital_output_group [ 10.10.2025 01:44] (current) lars
Line 8: Line 8:
     "digital_output": {     "digital_output": {
         "green_led": {         "green_led": {
-            "type": "push pull" +            "type": "push pull", 
-            "pad": "PA3"+            "pad": "PA3", 
 +            "on_boot": "enabled"
         }         }
     }     }
Line 34: Line 35:
 ==== invert ==== ==== invert ====
  
-If this setting is set to "on" then turning this output "on" will generate a Low (Gnd) signal. Turning it "off" will generate a High (Vcc) level.+If this setting is set to "enabled" then turning this output "on" will generate a Low (Gnd) signal. Turning it "off" will generate a High (Vcc) level.
  
-If this setting is set to "off" (=default) then turning this output "on" will generate a High (Vcc) signal. Turning it "off" will generate a Low (Gnd) level.+If this setting is set to "disabed" (=default) then turning this output "on" will generate a High (Vcc) signal. Turning it "off" will generate a Low (Gnd) level
 + 
 +**type**: bool 
 + 
 +**default**: "disabled" 
 + 
 +==== pull_up ==== 
 + 
 +enables the pull up resistor. 
 + 
 +**type**: bool 
 + 
 +**default**: disabled 
 + 
 +==== pull_down ==== 
 + 
 +enables the pull down resistor. 
 + 
 +**type**: bool 
 + 
 +**default**: disabled 
 + 
 + 
 +==== on_boot ==== 
 + 
 +defines the logic level to be set on initialization. Setting this to "enabled" will set the pin High (Vcc) if inverted is disabled. 
 + 
 +**type**: bool 
 + 
 +**default**: disabled 
 + 
 +==== drive_strength ==== 
 + 
 +defines the amount of current that can be driven from the pin. Possible values are: 
 +  * 2mA 
 +  * 4mA 
 +  * 8mA 
 +  * 12mA 
 + 
 +**type**: enum 
 + 
 +**default**: 2mA 
 + 
 +==== slew_rate ==== 
 + 
 +defines the rise and fall times. Possible values are: 
 +  * slow 
 +  * fast 
 + 
 +**type**: enum 
 + 
 +**default**: "slow" 
 + 
 + 
 +===== API ===== 
 +The part "signal_name" in the described functions will be replaced by the name of the signal. E.g. if your signal is called "debug_led" then the API function "signal_name_on" will become "debug_led_on"
 + 
 +<code>void signal_name_on(void)</code> 
 +Will set the output pin to output a high Signal. The pin will be at Vcc. 
 +If the signal has the "invert" property "on" then the Output will be Low (Gnd).
  
-**type**: string 
  
-**default**: "off"+<code>void signal_name_off(void)</code> 
 +Will set the output pin to output a low Signal. The pin will be at Gnd. 
 +If the signal has the "invertproperty "on" then the Output will be High (Vcc).
  
digital_output_group.1755408848.txt.gz · Last modified: by lars