An integrated circuit comprising an output stage configured to operate between in either a first operating state or a second operating state, the output stage comprising: - a first, a second, a third and a fourth terminals (T1, T2, T3, T4) which can each be configured to operate as input terminals or as output terminals; and, - a first, a second, a third and a fourth switches (S1, S2, S3, S4), each having a first main terminal, a second main terminal and a control terminal, the control terminal being configured to receive a control signal for controlling an open or closed state of the switch; wherein, - the first terminal is connected to the first main terminal of the first switch; - the second terminal is connected to the first main terminal of the second switch; - the second main terminal of the first switch is connected to the first main terminal of the third switch through a first branch, - the second main terminal of the second switch is connected to the first main terminal of the fourth switch through a second branch; - the third terminal is connected to the first branch and the fourth terminal is connected to the second branch; - the second main terminals of the third and fourth switches are both connected to a common node receiving a reference potential; and, wherein, - If the output stage is configured to operate in the first operating state, the first, second, third and fourth switches are arranged in a first electrical configuration such that the first and second terminals operate as input terminals and the third and fourth terminals operate as output terminals; and, - if the output stage is configured to operate in the second operating state, the first, second, third and fourth switches are arranged in a second electrical configuration different from the first electrical configuration such that the first and second terminals operate as output terminals and the third and fourth terminals operate as input terminals, and wherein the integrated circuit further comprising a Class-D control stage and a DC-DC converter control stage wherein, - If Class-D control stage is connected to the output stage, the DC-DC converter control stage is electrically disconnected from the output stage, the output stage being configured to operate in the first operating state as a Class-D amplifier output stage; and, - If the DC-DC converter control stage is connected to the output stage, the Class-D control stage is electronically disconnected from the output stage, the output stage being configured to operate in the second operating state as a DC-DC converter. - a first, a second, a third and a fourth terminals (T1, T2, T3, T4) which can each be configured to operate as input terminals or as output terminals; and, - a first, a second, a third and a fourth switches (S1, S2, S3, S4), each having a first main terminal, a second main terminal and a control terminal, the control terminal being configured to receive a control signal for controlling an open or closed state of the switch; - the first terminal is connected to the first main terminal of the first switch; - the second terminal is connected to the first main terminal of the second switch; - the second main terminal of the first switch is connected to the first main terminal of the third switch through a first branch, - the second main terminal of the second switch is connected to the first main terminal of the fourth switch through a second branch; - the third terminal is connected to the first branch and the fourth terminal is connected to the second branch; - the second main terminals of the third and fourth switches are both connected to a common node receiving a reference potential; and, - If the output stage is configured to operate in the first operating state, the first, second, third and fourth switches are arranged in a first electrical configuration such that the first and second terminals operate as input terminals and the third and fourth terminals operate as output terminals; and, - if the output stage is configured to operate in the second operating state, the first, second, third and fourth switches are arranged in a second electrical configuration different from the first electrical configuration such that the first and second terminals operate as output terminals and the third and fourth terminals operate as input terminals, and - If Class-D control stage is connected to the output stage, the DC-DC converter control stage is electrically disconnected from the output stage, the output stage being configured to operate in the first operating state as a Class-D amplifier output stage; and, - If the DC-DC converter control stage is connected to the output stage, the Class-D control stage is electronically disconnected from the output stage, the output stage being configured to operate in the second operating state as a DC-DC converter.