• Main Page
  • Modules
  • Index
  • File List
  • Globals

hal/nrf24le1/hal_uart.h

Go to the documentation of this file.
00001 /* Copyright (c) 2009 Nordic Semiconductor. All Rights Reserved.
00002  *
00003  * The information contained herein is confidential property of Nordic 
00004  * Semiconductor ASA.Terms and conditions of usage are described in detail 
00005  * in NORDIC SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT. 
00006  *
00007  * Licensees are granted free, non-transferable use of the information. NO
00008  * WARRENTY of ANY KIND is provided. This heading must NOT be removed from
00009  * the file.
00010  *              
00011  * $LastChangedRevision: 168 $
00012  */
00013 
00032 #ifndef HAL_UART_H__
00033 #define HAL_UART_H__
00034 
00035 #include <stdint.h>
00036 #include <stdbool.h>
00037 
00041 typedef enum
00042 {
00043     UART_BAUD_600,      
00044     UART_BAUD_1K2,      
00045     UART_BAUD_2K4,      
00046     UART_BAUD_4K8,      
00047     UART_BAUD_9K6,      
00048     UART_BAUD_19K2,     
00049     UART_BAUD_38K4,     
00050     UART_BAUD_57K6,     
00051     UART_BAUD_115K2     
00052 } hal_uart_baudrate_t;
00053 
00059 void hal_uart_init(hal_uart_baudrate_t baud);
00060 
00064 void hal_uart_putchar(uint8_t ch);
00065 
00069 bool hal_uart_tx_complete();
00070 
00078 uint8_t hal_uart_chars_available(void);
00079 
00083 uint8_t hal_uart_getchar(void);
00084 
00085 #endif // HAL_UART_H__
00086 

Generated on Fri Apr 20 2012 14:11:45 for nRFGo SDK by  doxygen 1.7.2