MCPcopy Create free account
hub / github.com/kiibohd/controller / OutputGen_setup

Function OutputGen_setup

Output/Interface/output_gen.c:132–148  ·  view source on GitHub ↗

Output Module Setup

Source from the content-addressed store, hash-verified

130
131// Output Module Setup
132inline void OutputGen_setup()
133{
134 // Register USB Output CLI dictionary
135 CLI_registerDictionary( outputCLIDict, outputCLIDictName );
136
137 // Initialize variables
138 Output_Available = 0;
139 Output_DebugMode = 0;
140 Output_ExtCurrent_Available = 0;
141 Output_USBCurrent_Available = 0;
142 Output_SleepMode = false;
143
144#if defined(_sam_)
145 // HACK: Will be corrected when usb support is added
146 Output_USBCurrent_Available = 500;
147#endif
148}
149
150
151// Update USB current (mA)

Callers 8

Output_setupFunction · 0.85
Output_setupFunction · 0.85
Output_setupFunction · 0.85
Output_setupFunction · 0.85
TestOut_setupFunction · 0.85
Output_setupFunction · 0.85
Output_setupFunction · 0.85
Output_setupFunction · 0.85

Calls 1

CLI_registerDictionaryFunction · 0.85

Tested by 1

TestOut_setupFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…