test version 0.2
Dependents: SC18IS606_Hello SC18IS606_EEPROM_access_test SC18IS606_OS6_Hello
Diff: SC18IS606.h
- Revision:
- 6:cfe7ec4f2b59
- Parent:
- 5:436b2c7854e8
- Child:
- 7:9fee975998c1
diff -r 436b2c7854e8 -r cfe7ec4f2b59 SC18IS606.h --- a/SC18IS606.h Wed Jul 28 01:26:27 2021 +0000 +++ b/SC18IS606.h Wed Jul 28 20:20:15 2021 +0000 @@ -144,7 +144,7 @@ * @param slave_select_num SPI slave select number (0 ~ 2) * @param send_data_ptr Send_data_ptr * @param length Length of data array - * @return dummy + * @return I2C error state */ int transfer( int slave_select_num, char *send_data_ptr, int length ); @@ -152,23 +152,29 @@ * * @param receive_data_ptr Receive_data_ptr * @param length Length of data array - * @return dummy + * @return I2C error state */ int read_buffer( char *receive_data_ptr, int length ); /** Set congiguration * * @param data Donfig data byte - * @return dummy + * @return I2C error state */ int config( FunctionID fid, char data ); /** Clear interrupt * - * @return dummy + * @return I2C error state */ int clear_interrupt( void ); + /** Read version + * + * @return version info in string + */ + char* read_version( void ); + private: enum {