1818 * @param[in] value New value of the register
1919 * @return 0 if successful, otherwise it returns -1.
2020 */
21- int i2c_write_register (const uint16_t address , const uint8_t reg_address , const uint8_t value );
21+ int i2c_write_register (uint16_t address , uint8_t reg_address , uint8_t value );
2222
2323/**
2424 * @brief Read a one-byte register from a slave over I²C.
@@ -28,7 +28,7 @@ int i2c_write_register(const uint16_t address, const uint8_t reg_address, const
2828 * @param[out] data Pointer to a 8-bit variable to store the value of the register read from the slave
2929 * @return 0 if successful, otherwise it returns -1.
3030 */
31- int i2c_read_register (const uint16_t address , const uint8_t reg_address , uint8_t * data );
31+ int i2c_read_register (uint16_t address , uint8_t reg_address , uint8_t * data );
3232
3333/**
3434 * @brief Read a 16bit register from a slave over I²C.
@@ -39,7 +39,7 @@ int i2c_read_register(const uint16_t address, const uint8_t reg_address, uint8_t
3939 * @param[out] data Pointer to a 16-bit variable to store the value of the register read from the slave
4040 * @return 0 if successful, otherwise it returns -1.
4141 */
42- int i2c_read_16b_register (const uint16_t address , const uint8_t reg_low_address , const uint8_t reg_high_address , uint16_t * data );
42+ int i2c_read_16b_register (uint16_t address , uint8_t reg_low_address , uint8_t reg_high_address , uint16_t * data );
4343
4444/**
4545 * @brief Write one byte to a register over SPI.
@@ -48,6 +48,6 @@ int i2c_read_16b_register(const uint16_t address, const uint8_t reg_low_address,
4848 * @param[in] data New value of the register
4949 * @return 0 if successful, -1 otherwise
5050 */
51- int spi_write_register (const uint8_t reg_address , const uint8_t data );
51+ int spi_write_register (uint8_t reg_address , uint8_t data );
5252
5353#endif
0 commit comments