debug_frmwrk.h File Reference
Contains some utilities that used for debugging through UART. More...
Go to the source code of this file.
Functions | |
void | UARTPutChar (LPC_UART_TypeDef *UARTx, uint8_t ch) |
Puts a character to UART port. | |
void | UARTPuts (LPC_UART_TypeDef *UARTx, const void *str) |
Puts a string to UART port. | |
void | UARTPuts_ (LPC_UART_TypeDef *UARTx, const void *str) |
Puts a string to UART port and print new line. | |
void | UARTPutDec (LPC_UART_TypeDef *UARTx, uint8_t decnum) |
Puts a decimal number to UART port. | |
void | UARTPutDec16 (LPC_UART_TypeDef *UARTx, uint16_t decnum) |
Puts a decimal number to UART port. | |
void | UARTPutDec32 (LPC_UART_TypeDef *UARTx, uint32_t decnum) |
Puts a decimal number to UART port. | |
void | UARTPutHex (LPC_UART_TypeDef *UARTx, uint8_t hexnum) |
Puts a hex number to UART port. | |
void | UARTPutHex16 (LPC_UART_TypeDef *UARTx, uint16_t hexnum) |
Puts a hex number to UART port. | |
void | UARTPutHex32 (LPC_UART_TypeDef *UARTx, uint32_t hexnum) |
Puts a hex number to UART port. | |
uint8_t | UARTGetChar (LPC_UART_TypeDef *UARTx) |
Get a character to UART port. | |
void | debug_frmwrk_init (void) |
*********************************************************************//** |
Detailed Description
Contains some utilities that used for debugging through UART.
- Version:
- 2.0
- Date:
- 21. May. 2010
Definition in file debug_frmwrk.h.
Function Documentation
void debug_frmwrk_init | ( | void | ) |
*********************************************************************//**
Initialize Debug frame work through initializing UART port
- Parameters:
-
[in] None
- Returns:
- None
Definition at line 247 of file debug_frmwrk.c.
uint8_t UARTGetChar | ( | LPC_UART_TypeDef * | UARTx ) |
Get a character to UART port.
- Parameters:
-
[in] UARTx Pointer to UART peripheral
- Returns:
- character value that returned
Definition at line 65 of file debug_frmwrk.c.
void UARTPutChar | ( | LPC_UART_TypeDef * | UARTx, |
uint8_t | ch | ||
) |
Puts a character to UART port.
- Parameters:
-
[in] UARTx Pointer to UART peripheral [in] ch Character to put
- Returns:
- None
Definition at line 54 of file debug_frmwrk.c.
void UARTPutDec | ( | LPC_UART_TypeDef * | UARTx, |
uint8_t | decnum | ||
) |
Puts a decimal number to UART port.
- Parameters:
-
[in] UARTx Pointer to UART peripheral [in] decnum Decimal number (8-bit long)
- Returns:
- None
Definition at line 109 of file debug_frmwrk.c.
void UARTPutDec16 | ( | LPC_UART_TypeDef * | UARTx, |
uint16_t | decnum | ||
) |
Puts a decimal number to UART port.
- Parameters:
-
[in] UARTx Pointer to UART peripheral [in] decnum Decimal number (8-bit long)
- Returns:
- None
Definition at line 125 of file debug_frmwrk.c.
void UARTPutDec32 | ( | LPC_UART_TypeDef * | UARTx, |
uint32_t | decnum | ||
) |
Puts a decimal number to UART port.
- Parameters:
-
[in] UARTx Pointer to UART peripheral [in] decnum Decimal number (8-bit long)
- Returns:
- None
Definition at line 145 of file debug_frmwrk.c.
void UARTPutHex | ( | LPC_UART_TypeDef * | UARTx, |
uint8_t | hexnum | ||
) |
Puts a hex number to UART port.
- Parameters:
-
[in] UARTx Pointer to UART peripheral [in] hexnum Hex number (8-bit long)
- Returns:
- None
Definition at line 175 of file debug_frmwrk.c.
void UARTPutHex16 | ( | LPC_UART_TypeDef * | UARTx, |
uint16_t | hexnum | ||
) |
Puts a hex number to UART port.
- Parameters:
-
[in] UARTx Pointer to UART peripheral [in] hexnum Hex number (16-bit long)
- Returns:
- None
Definition at line 194 of file debug_frmwrk.c.
void UARTPutHex32 | ( | LPC_UART_TypeDef * | UARTx, |
uint32_t | hexnum | ||
) |
Puts a hex number to UART port.
- Parameters:
-
[in] UARTx Pointer to UART peripheral [in] hexnum Hex number (32-bit long)
- Returns:
- None
Definition at line 212 of file debug_frmwrk.c.
void UARTPuts | ( | LPC_UART_TypeDef * | UARTx, |
const void * | str | ||
) |
Puts a string to UART port.
- Parameters:
-
[in] UARTx Pointer to UART peripheral [in] str string to put
- Returns:
- None
Definition at line 79 of file debug_frmwrk.c.
void UARTPuts_ | ( | LPC_UART_TypeDef * | UARTx, |
const void * | str | ||
) |
Puts a string to UART port and print new line.
- Parameters:
-
[in] UARTx Pointer to UART peripheral [in] str String to put
- Returns:
- None
Definition at line 96 of file debug_frmwrk.c.
Generated on Thu Jul 14 2022 05:16:18 by 1.7.2