@@ -39,31 +39,31 @@ void test_lsm303_setup(void) {
39
39
LSM303_STATUS_SUCCESS );
40
40
i2c_read_byte_IgnoreArg_read_data ();
41
41
i2c_read_byte_ReturnThruPtr_read_data (& power_mode_return );
42
- i2c_write_bytes_ExpectAndReturn (ACC_I2C_ADDRESS , power_buffer ,
42
+ i2c_write_byte_ExpectAndReturn (ACC_I2C_ADDRESS , power_buffer ,
43
43
LSM303_STATUS_SUCCESS );
44
44
45
45
// AXES
46
46
i2c_read_byte_ExpectAndReturn (ACC_I2C_ADDRESS , CTRL_REG1_A , NULL ,
47
47
LSM303_STATUS_SUCCESS );
48
48
i2c_read_byte_IgnoreArg_read_data ();
49
49
i2c_read_byte_ReturnThruPtr_read_data (& enable_axes_return );
50
- i2c_write_bytes_ExpectAndReturn (ACC_I2C_ADDRESS , axes_buffer ,
50
+ i2c_write_byte_ExpectAndReturn (ACC_I2C_ADDRESS , axes_buffer ,
51
51
LSM303_STATUS_SUCCESS );
52
52
53
53
// ODR
54
54
i2c_read_byte_ExpectAndReturn (ACC_I2C_ADDRESS , CTRL_REG1_A , NULL ,
55
55
LSM303_STATUS_SUCCESS );
56
56
i2c_read_byte_IgnoreArg_read_data ();
57
57
i2c_read_byte_ReturnThruPtr_read_data (& set_odr_return );
58
- i2c_write_bytes_ExpectAndReturn (ACC_I2C_ADDRESS , odr_buffer ,
58
+ i2c_write_byte_ExpectAndReturn (ACC_I2C_ADDRESS , odr_buffer ,
59
59
LSM303_STATUS_SUCCESS );
60
60
61
61
// SCALE
62
62
i2c_read_byte_ExpectAndReturn (ACC_I2C_ADDRESS , CTRL_REG4_A , NULL ,
63
63
LSM303_STATUS_SUCCESS );
64
64
i2c_read_byte_IgnoreArg_read_data ();
65
65
i2c_read_byte_ReturnThruPtr_read_data (& set_scale_return );
66
- i2c_write_bytes_ExpectAndReturn (ACC_I2C_ADDRESS , scale_buffer ,
66
+ i2c_write_byte_ExpectAndReturn (ACC_I2C_ADDRESS , scale_buffer ,
67
67
LSM303_STATUS_SUCCESS );
68
68
69
69
// RESOLUTION
@@ -72,7 +72,7 @@ void test_lsm303_setup(void) {
72
72
i2c_read_byte_IgnoreArg_read_data ();
73
73
i2c_read_byte_ReturnThruPtr_read_data (& set_resolution_return );
74
74
;
75
- i2c_write_bytes_ExpectAndReturn (ACC_I2C_ADDRESS , resolution_buffer ,
75
+ i2c_write_byte_ExpectAndReturn (ACC_I2C_ADDRESS , resolution_buffer ,
76
76
LSM303_STATUS_SUCCESS );
77
77
78
78
TEST_ASSERT_EQUAL (LSM303_STATUS_SUCCESS , lsm303_setup (& dev , init_param ));
@@ -95,9 +95,9 @@ void test_lsm303_set_power_mode(void) {
95
95
i2c_read_byte_IgnoreArg_read_data ();
96
96
i2c_read_byte_ReturnThruPtr_read_data (& read_data_result );
97
97
98
- i2c_write_bytes_ExpectAndReturn (ACC_I2C_ADDRESS , NULL , LSM303_STATUS_SUCCESS );
99
- i2c_write_bytes_IgnoreArg_data_buffer ();
100
- i2c_write_bytes_StubWithCallback ( i2c_write_bytes_callback );
98
+ i2c_write_byte_ExpectAndReturn (ACC_I2C_ADDRESS , NULL , LSM303_STATUS_SUCCESS );
99
+ i2c_write_byte_IgnoreArg_data_buffer ();
100
+ i2c_write_byte_StubWithCallback ( i2c_write_byte_callback );
101
101
102
102
TEST_ASSERT_EQUAL (LSM303_STATUS_SUCCESS ,
103
103
lsm303_set_power_mode (& dev , ACC_NORMAL ));
@@ -115,9 +115,9 @@ void test_lsm303_acc_enable_axes(void) {
115
115
i2c_read_byte_IgnoreArg_read_data ();
116
116
i2c_read_byte_ReturnThruPtr_read_data (& read_data_result );
117
117
118
- i2c_write_bytes_ExpectAndReturn (ACC_I2C_ADDRESS , NULL , LSM303_STATUS_SUCCESS );
119
- i2c_write_bytes_IgnoreArg_data_buffer ();
120
- i2c_write_bytes_StubWithCallback ( i2c_write_bytes_callback );
118
+ i2c_write_byte_ExpectAndReturn (ACC_I2C_ADDRESS , NULL , LSM303_STATUS_SUCCESS );
119
+ i2c_write_byte_IgnoreArg_data_buffer ();
120
+ i2c_write_byte_StubWithCallback ( i2c_write_byte_callback );
121
121
122
122
TEST_ASSERT_EQUAL (LSM303_STATUS_SUCCESS ,
123
123
lsm303_acc_enable_axes (& dev , init_param .acc_axes_config ));
@@ -135,9 +135,9 @@ void test_lsm303_acc_set_odr(void) {
135
135
i2c_read_byte_IgnoreArg_read_data ();
136
136
i2c_read_byte_ReturnThruPtr_read_data (& read_data_result );
137
137
138
- i2c_write_bytes_ExpectAndReturn (ACC_I2C_ADDRESS , NULL , LSM303_STATUS_SUCCESS );
139
- i2c_write_bytes_IgnoreArg_data_buffer ();
140
- i2c_write_bytes_StubWithCallback ( i2c_write_bytes_callback );
138
+ i2c_write_byte_ExpectAndReturn (ACC_I2C_ADDRESS , NULL , LSM303_STATUS_SUCCESS );
139
+ i2c_write_byte_IgnoreArg_data_buffer ();
140
+ i2c_write_byte_StubWithCallback ( i2c_write_byte_callback );
141
141
142
142
TEST_ASSERT_EQUAL (LSM303_STATUS_SUCCESS ,
143
143
lsm303_acc_set_odr (& dev , ACC_AXES_ENABLE_XYZ ));
@@ -155,9 +155,9 @@ void test_lsm303_acc_set_scale(void) {
155
155
i2c_read_byte_IgnoreArg_read_data ();
156
156
i2c_read_byte_ReturnThruPtr_read_data (& read_data_result );
157
157
158
- i2c_write_bytes_ExpectAndReturn (ACC_I2C_ADDRESS , NULL , LSM303_STATUS_SUCCESS );
159
- i2c_write_bytes_IgnoreArg_data_buffer ();
160
- i2c_write_bytes_StubWithCallback ( i2c_write_bytes_callback );
158
+ i2c_write_byte_ExpectAndReturn (ACC_I2C_ADDRESS , NULL , LSM303_STATUS_SUCCESS );
159
+ i2c_write_byte_IgnoreArg_data_buffer ();
160
+ i2c_write_byte_StubWithCallback ( i2c_write_byte_callback );
161
161
162
162
TEST_ASSERT_EQUAL (LSM303_STATUS_SUCCESS ,
163
163
lsm303_acc_set_scale (& dev , ACC_SCALE_8G ));
@@ -175,9 +175,9 @@ void test_lsm303_acc_set_resolution(void) {
175
175
i2c_read_byte_IgnoreArg_read_data ();
176
176
i2c_read_byte_ReturnThruPtr_read_data (& read_data_result );
177
177
178
- i2c_write_bytes_ExpectAndReturn (ACC_I2C_ADDRESS , NULL , LSM303_STATUS_SUCCESS );
179
- i2c_write_bytes_IgnoreArg_data_buffer ();
180
- i2c_write_bytes_StubWithCallback ( i2c_write_bytes_callback );
178
+ i2c_write_byte_ExpectAndReturn (ACC_I2C_ADDRESS , NULL , LSM303_STATUS_SUCCESS );
179
+ i2c_write_byte_IgnoreArg_data_buffer ();
180
+ i2c_write_byte_StubWithCallback ( i2c_write_byte_callback );
181
181
182
182
TEST_ASSERT_EQUAL (LSM303_STATUS_SUCCESS ,
183
183
lsm303_acc_set_resolution (& dev , ACC_RESOLUTION_HIGH ));
0 commit comments