Skip to content

Commit b63d39f

Browse files
committed
fixup: Cs43l22 renamed
1 parent 9da9dfa commit b63d39f

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

src/modm/driver/dac/cs43l22.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,10 +293,10 @@ struct cs43l22
293293
* @ingroup modm_driver_cs43l22
294294
*/
295295
template<typename I2cMaster, typename I2sMaster>
296-
class CS43L22 : public cs43l22, public modm::I2cDevice<I2cMaster, 3>
296+
class Cs43l22 : public cs43l22, public modm::I2cDevice<I2cMaster, 3>
297297
{
298298
public:
299-
CS43L22(uint8_t i2cAddress);
299+
Cs43l22(uint8_t i2cAddress);
300300

301301
/// Initialize device, call before using any other function
302302
ResumableResult<bool>

src/modm/driver/dac/cs43l22_impl.hpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ namespace modm
1717
{
1818

1919
template<typename I2cMaster, typename I2sMaster>
20-
CS43L22<I2cMaster, I2sMaster>::CS43L22(uint8_t i2cAddress)
20+
Cs43l22<I2cMaster, I2sMaster>::Cs43l22(uint8_t i2cAddress)
2121
: I2cDevice<I2cMaster, 3>(i2cAddress)
2222
{
2323
volume = -300;
2424
}
2525

2626
template<typename I2cMaster, typename I2sMaster>
2727
ResumableResult<bool>
28-
CS43L22<I2cMaster, I2sMaster>::initialize()
28+
Cs43l22<I2cMaster, I2sMaster>::initialize()
2929
{
3030
RF_BEGIN();
3131
// Verify the chip ID
@@ -63,7 +63,7 @@ CS43L22<I2cMaster, I2sMaster>::initialize()
6363

6464
template<typename I2cMaster, typename I2sMaster>
6565
ResumableResult<bool>
66-
CS43L22<I2cMaster, I2sMaster>::writeRegister(Register reg, RegisterValue_t value)
66+
Cs43l22<I2cMaster, I2sMaster>::writeRegister(Register reg, RegisterValue_t value)
6767
{
6868
RF_BEGIN();
6969
tx_buffer[0] = static_cast<uint8_t>(reg);
@@ -74,7 +74,7 @@ CS43L22<I2cMaster, I2sMaster>::writeRegister(Register reg, RegisterValue_t value
7474

7575
template<typename I2cMaster, typename I2sMaster>
7676
ResumableResult<bool>
77-
CS43L22<I2cMaster, I2sMaster>::readRegister(Register reg)
77+
Cs43l22<I2cMaster, I2sMaster>::readRegister(Register reg)
7878
{
7979
RF_BEGIN();
8080
rx_buffer = static_cast<uint8_t>(reg);
@@ -88,7 +88,7 @@ CS43L22<I2cMaster, I2sMaster>::readRegister(Register reg)
8888

8989
template<typename I2cMaster, typename I2sMaster>
9090
ResumableResult<bool>
91-
CS43L22<I2cMaster, I2sMaster>::setMasterVolume(centiBel_t vol)
91+
Cs43l22<I2cMaster, I2sMaster>::setMasterVolume(centiBel_t vol)
9292
{
9393
RF_BEGIN();
9494
{
@@ -108,7 +108,7 @@ CS43L22<I2cMaster, I2sMaster>::setMasterVolume(centiBel_t vol)
108108

109109
template<typename I2cMaster, typename I2sMaster>
110110
void
111-
CS43L22<I2cMaster, I2sMaster>::regToCentibel(uint8_t reg)
111+
Cs43l22<I2cMaster, I2sMaster>::regToCentibel(uint8_t reg)
112112
{
113113
volume = reg;
114114
if (volume <= 24 and volume >= 0)
@@ -126,7 +126,7 @@ CS43L22<I2cMaster, I2sMaster>::regToCentibel(uint8_t reg)
126126

127127
template<typename I2cMaster, typename I2sMaster>
128128
ResumableResult<bool>
129-
CS43L22<I2cMaster, I2sMaster>::setMasterVolumeRelative(centiBel_t rel_vol)
129+
Cs43l22<I2cMaster, I2sMaster>::setMasterVolumeRelative(centiBel_t rel_vol)
130130
{
131131
RF_BEGIN();
132132
if (RF_CALL(getMasterVolume()))
@@ -140,7 +140,7 @@ CS43L22<I2cMaster, I2sMaster>::setMasterVolumeRelative(centiBel_t rel_vol)
140140

141141
template<typename I2cMaster, typename I2sMaster>
142142
ResumableResult<bool>
143-
CS43L22<I2cMaster, I2sMaster>::getMasterVolume()
143+
Cs43l22<I2cMaster, I2sMaster>::getMasterVolume()
144144
{
145145
return readRegister(Register::MasterVolumeControlA);
146146
}

0 commit comments

Comments
 (0)