373a8c32b2
git-svn-id: file:///srv/dev-disk-by-uuid-17e88007-4d0c-45e0-8757-cacfcc458630/repositories/svn/Diplomarbeit@55 9fe90eed-be63-e94b-8204-d34ff4c2ff93
68 lines
2.5 KiB
C
68 lines
2.5 KiB
C
/* ---------------------------------------------------------------------------
|
|
* ssp0.h - v1.0 (c) 2006 Micro-key bv
|
|
* ---------------------------------------------------------------------------
|
|
* Micro-key bv
|
|
* Industrieweg 28, 9804 TG Noordhorn
|
|
* Postbus 92, 9800 AA Zuidhorn
|
|
* The Netherlands
|
|
* Tel: +31 594 503020
|
|
* Fax: +31 594 505825
|
|
* Email: support@microkey.nl
|
|
* Web: www.microkey.nl
|
|
* ---------------------------------------------------------------------------
|
|
* Description: ssp0 driver interface description.
|
|
* ---------------------------------------------------------------------------
|
|
* Version(s): 1.0, 30-10-2006, Jos Pasop.
|
|
* Creation.
|
|
* ---------------------------------------------------------------------------
|
|
*/
|
|
|
|
#ifndef __SSP0_H__
|
|
#define __SSP0_H__
|
|
|
|
/* ---------------------------------------------------------------------------
|
|
* System include files.
|
|
* ---------------------------------------------------------------------------
|
|
*/
|
|
#include "lpc23xx.h"
|
|
|
|
/* ---------------------------------------------------------------------------
|
|
* Application include files.
|
|
* ---------------------------------------------------------------------------
|
|
*/
|
|
|
|
/* ---------------------------------------------------------------------------
|
|
* Constant and macro definitions.
|
|
* ---------------------------------------------------------------------------
|
|
*/
|
|
#define SSP0_RX_BUFFER_SIZE 128 // UART0 receive buffer size
|
|
#define SSP0_TX_BUFFER_SIZE 128 // UART0 transmit buffer size
|
|
|
|
/* ---------------------------------------------------------------------------
|
|
* Type definitions.
|
|
* ---------------------------------------------------------------------------
|
|
*/
|
|
|
|
|
|
/* ---------------------------------------------------------------------------
|
|
* Variable declarations.
|
|
* ---------------------------------------------------------------------------
|
|
*/
|
|
|
|
/* ---------------------------------------------------------------------------
|
|
* Function declarations.
|
|
* ---------------------------------------------------------------------------
|
|
*/
|
|
void ssp0Init (void);
|
|
void ssp0Enable (void);
|
|
void ssp0Disable (void);
|
|
void ssp0TakeBus(void);
|
|
void ssp0ReleaseBus(void);
|
|
RESULT ssp0Write (UINT8 data);
|
|
RESULT ssp0Read (UINT8 * pData);
|
|
void ssp0WriteBuffer( UINT8 *buffer, UINT16 length );
|
|
void ssp0ReadBuffer( UINT8 *buffer, UINT16 length );
|
|
void ssp0Loopback( BOOLEAN enable );
|
|
|
|
#endif /* __SSP0_H__ */
|