| Electronic Components Datasheet Search |
|
AN2491 Datasheet(PDF) 30 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN2491 Datasheet(HTML) 30 Page - STMicroelectronics |
|
30 / 32 page ![]() Digital_Bus_interface header file AN2491 30/32 8 Digital_Bus_interface header file /****************************************************************** Copyright (C) 2006 STMicroelectronics File name:Digital_Bus_interface.h Description:Header file for the SPI/I2C Interface Driver code. Provides function type and data structure definition Creation:11/20/2006 ******************************************************************* #ifndef _DBI_H #define _DBI_H #ifdef __INTERFACE_I2C // Type enumeration regarding Acknowledge of I2C mode typedef enum { NO_ACK, ACK } t_I2C_Ack ; // Function dedicated to send data on I2C bus // Parameters: // data: Table of Bytes to send (in) // nb_bytes: number of bytes to send (in) // Return: // ACK if acknowledge is received by master // NO_ACK if acknowledge isn't received by master t_I2C_Ack I2C_Send_data(unsigned char *data, int nb_bytes); // Function dedicated to read data on I2C bus // Parameters: // Add: Slave Address to read (in) // data: Countain the byte read (out) // Return: // ACK if acknowledge is received by master // NO_ACK if acknowledge isn't received by master t_I2C_Ack I2C_Read_data(unsigned char Add, unsigned char *data); #endif //__INTERFACE_I2C #ifdef __INTERFACE_SPI // Function dedicated to send data on SPI bus // Parameters: // data: Data (32 bits) to send (in) void SPI_Send_data(unsigned int data); #endif //__INTERFACE_SPI #endif // _DBI_H //*********** End of file -Digital_Bus_interface.h************** |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |