// Signal from the Output Module that the available current has changed // current - mA void Scan_currentChange( unsigned int current ) { // Indicate to all submodules current change Connect_currentChange( current ); Matrix_currentChange( current ); LED_currentChange( current ); }
uint8_t Connect_receive_IdReport( uint8_t id, uint16_t *pending_bytes, uint8_t uart_num ) { dbug_print("IdReport"); // Check the directionality if ( uart_num == UART_Master ) { erro_print("Invalid IdRequest direction..."); } // Track Id response if master if ( Connect_master ) { info_msg("Id Reported: "); printHex( id ); print( NL ); // Check if this is the highest ID if ( id > Connect_maxId ) { Connect_maxId = id; } // Send available current Connect_currentChange( Output_current_available() ); return 1; } // Propagate id if yet another slave else { Connect_send_IdReport( id ); } return 1; }