Hexdump in console #58

Merged
merged 5 commits into from Sep 24, 2016

Projects

None yet

2 participants

@Baldanos
Collaborator

This PR adds the ´hd´ (HexDump) command in the following modes :

  • spi
  • i2c
  • uart
  • 2- and 3-wire

For instance, this displays the first 32 bytes of an i2c EEPROM :

i2c1> [ 0xa0 0x00 [ 0xa1 hd:32 ]
I2C START
WRITE: 0xA0 ACK 0x00 ACK 
I2C START
WRITE: 0xA1 ACK 
5B 30 78 61 31 FF FF FF  42 00 75 00 80 08 00 01  |  [0xa1...B.u..... 
0E FF 0C 01 02 20 00 A0  75 00 00 50 3C 50 2D 20  |  ..... ..u..P<P-  
NACK
I2C STOP
@bvernoux bvernoux merged commit 331332c into hydrabus:master Sep 24, 2016
@Baldanos Baldanos deleted the Baldanos:hexdump branch Sep 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment