| 40 | | fprintf(stderr, "Syntax: i2cget [-f] [-y] I2CBUS CHIP-ADDRESS " |
| 41 | | "[DATA-ADDRESS [MODE]]\n" |
| 42 | | " i2cget -V\n" |
| 43 | | " MODE can be: 'b' (read byte data, default)\n" |
| 44 | | " 'w' (read word data)\n" |
| 45 | | " 'c' (write byte/read byte)\n" |
| 46 | | " If DATA-ADDRESS is omitted, a single read byte command is " |
| 47 | | "issued\n" |
| 48 | | " Append 'p' to MODE for PEC checking\n" |
| 49 | | " I2CBUS is an integer\n"); |
| | 40 | fprintf(stderr, |
| | 41 | "Usage: i2cget [-f] [-y] I2CBUS CHIP-ADDRESS [DATA-ADDRESS [MODE]]\n" |
| | 42 | " I2CBUS is an integer or an I2C bus name\n" |
| | 43 | " ADDRESS is an integer (0x03 - 0x77)\n" |
| | 44 | " MODE is one of:\n" |
| | 45 | " b (read byte data, default)\n" |
| | 46 | " w (read word data)\n" |
| | 47 | " c (write byte/read byte)\n" |
| | 48 | " Append p for SMBus PEC\n"); |