power_source - Get the power source
uint8 power_source();
Retrieve the source of power for the Titan Two device.
Returns a number that represents the power source as the following table.
Return Value | Power Source |
---|---|
0 | OUTPUT Port |
1 | PROG Port |
2 | DC Power Jack |
const char *ps_text[] = { "Power Source: OUTPUT Port", "Power Source: PROG Port", "Power Source: DC Power Jack" }; init { printf(ps_text[power_source()]); }