Lines Matching refs:atoi

159     int32_t port = argc > 1 ? atoi(argv[1]) : 1;  in i2c_write_test()
160 int32_t slave_addr = argc > 2 ? atoi(argv[2]): 0x40; // 0x40 is SI7006 humiture's address in i2c_write_test()
161 …char tx = argc > 3 ? atoi(argv[3]) : 0xF3; // 0xF3 is the command to control SI7006 to m… in i2c_write_test()
162 …uint32_t number = argc > 4 ? atoi(argv[4]) : 1; // number of bytes to send in single i2c tx p… in i2c_write_test()
163 uint32_t loop = argc > 5 ? atoi(argv[5]) : 1; // whether do i2c tx multiple times in i2c_write_test()
164 uint32_t wait = argc > 6 ? atoi(argv[6]) : 50; // wait time during successive i2c tx in i2c_write_test()
192 int32_t port = argc > 1 ? atoi(argv[1]) : 1; in i2c_read_test()
193 int32_t slave_addr = argc > 2 ? atoi(argv[2]) : 0x40; // 0x40 is SI7006 humiture's address in i2c_read_test()
194 …uint32_t number = argc > 3 ? atoi(argv[3]) : 1; // number of bytes to read in single i2c rx p… in i2c_read_test()
195 uint32_t loop = argc > 4 ? atoi(argv[4]) : 1; // whether do i2c tx multiple times in i2c_read_test()
196 uint32_t wait = argc > 5 ? atoi(argv[5]) : 50; // wait time during successive i2c rx in i2c_read_test()
283 int32_t port = argc > 1 ? atoi(argv[1]) : 1; in i2c_mem_read_test()
284 int32_t slave_addr = argc > 2 ? atoi(argv[2]) : 0x1e; // 0x1e is ap3216c's address in i2c_mem_read_test()
285 uint16_t addr = argc > 3 ? atoi(argv[3]) : 0xc; // memory address in i2c_mem_read_test()
286 …uint32_t number = argc > 4 ? atoi(argv[4]) : 1; // number of bytes to read in single i2c rx… in i2c_mem_read_test()
287 uint32_t loop = argc > 5 ? atoi(argv[5]) : 1; // whether do i2c tx multiple times in i2c_mem_read_test()
288 uint32_t wait = argc > 6 ? atoi(argv[6]) : 50; // wait time during successive i2c rx in i2c_mem_read_test()
317 int32_t port = argc > 1 ? atoi(argv[1]) : 1; in i2c_mem_write_test()
318 int32_t slave_addr = argc > 2 ? atoi(argv[2]): 0x1e; // 0x1e is ap3216c's address in i2c_mem_write_test()
319 …uint16_t addr = argc > 3 ? atoi(argv[3]) : 0x0; // 0x0 is ap3216c's system configuration regi… in i2c_mem_write_test()
320 …char tx = argc > 4 ? atoi(argv[4]) : 0x3; // 0x3 is the command to active ap3216c's A… in i2c_mem_write_test()
321 …uint32_t number = argc > 5 ? atoi(argv[5]) : 1; // number of bytes to send in single i2c tx p… in i2c_mem_write_test()
322 uint32_t loop = argc > 7 ? atoi(argv[6]) : 1; // whether do i2c tx multiple times in i2c_mem_write_test()
323 uint32_t wait = argc > 7 ? atoi(argv[7]) : 50; // wait time during successive i2c tx in i2c_mem_write_test()