MP3 1.0
This is the Doxygen document for ECE391 MP3.
Loading...
Searching...
No Matches
Functions | Variables
lib.c File Reference

Basic library functions (printf, strlen, etc.) More...

#include "lib.h"
#include "terminal.h"
#include "pcb.h"

Functions

void reset_position (void)
 
void clear (void)
 
void kclear (char *kvideo_mem)
 
char * strcat (char *destination, const char *source)
 
int32_t printf (int8_t *format,...)
 
int32_t puts (int8_t *s)
 
void putc (uint8_t c)
 
void kputc (uint8_t c)
 
int8_titoa (uint32_t value, int8_t *buf, int32_t radix)
 
int8_tstrrev (int8_t *s)
 
uint32_t strlen (const int8_t *s)
 
void * memset (void *s, int32_t c, uint32_t n)
 
void * memset_word (void *s, int32_t c, uint32_t n)
 
void * memset_dword (void *s, int32_t c, uint32_t n)
 
void * memcpy (void *dest, const void *src, uint32_t n)
 
void * memmove (void *dest, const void *src, uint32_t n)
 
int32_t strncmp (const int8_t *s1, const int8_t *s2, uint32_t n)
 
int8_tstrcpy (int8_t *dest, const int8_t *src)
 
int8_tstrncpy (int8_t *dest, const int8_t *src, uint32_t n)
 
void test_interrupts (void)
 
void cputc (uint8_t color, uint8_t c)
 
int32_t cprintf (int8_t color, int8_t *format,...)
 
int32_t cputs (uint8_t color, int8_t *s)
 
void updateCursor (int x, int y)
 updates cursor location to x,y. Also updates the cursor on the screen if necessary More...
 
void switchColor (int color)
 Switch the color of the text. More...
 

Variables

int len
 
uint16_t attrib = PINK
 

Detailed Description

Basic library functions (printf, strlen, etc.)

Author
Group 8, ECE391 staff
Version
1.0
Date
2023-03-04

Function Documentation

◆ clear()

void clear ( void  )

◆ cprintf()

int32_t cprintf ( int8_t  color,
int8_t format,
  ... 
)

◆ cputc()

void cputc ( uint8_t  color,
uint8_t  c 
)

◆ cputs()

int32_t cputs ( uint8_t  color,
int8_t s 
)

◆ itoa()

int8_t * itoa ( uint32_t  value,
int8_t buf,
int32_t  radix 
)

◆ kclear()

void kclear ( char *  kvideo_mem)

◆ kputc()

void kputc ( uint8_t  c)

◆ memcpy()

void * memcpy ( void *  dest,
const void *  src,
uint32_t  n 
)

◆ memmove()

void * memmove ( void *  dest,
const void *  src,
uint32_t  n 
)

◆ memset()

void * memset ( void *  s,
int32_t  c,
uint32_t  n 
)

◆ memset_dword()

void * memset_dword ( void *  s,
int32_t  c,
uint32_t  n 
)

◆ memset_word()

void * memset_word ( void *  s,
int32_t  c,
uint32_t  n 
)

◆ printf()

int32_t printf ( int8_t format,
  ... 
)

◆ putc()

void putc ( uint8_t  c)

◆ puts()

int32_t puts ( int8_t s)

◆ reset_position()

void reset_position ( void  )

◆ strcat()

char * strcat ( char *  destination,
const char *  source 
)

◆ strcpy()

int8_t * strcpy ( int8_t dest,
const int8_t src 
)

◆ strlen()

uint32_t strlen ( const int8_t s)

◆ strncmp()

int32_t strncmp ( const int8_t s1,
const int8_t s2,
uint32_t  n 
)

◆ strncpy()

int8_t * strncpy ( int8_t dest,
const int8_t src,
uint32_t  n 
)

◆ strrev()

int8_t * strrev ( int8_t s)

◆ switchColor()

void switchColor ( int  color)

Switch the color of the text.

Parameters
color0,1,2 are terminal numbers which corrsponds to pink, cyan, and dark green.

◆ test_interrupts()

void test_interrupts ( void  )

◆ updateCursor()

void updateCursor ( int  x,
int  y 
)

updates cursor location to x,y. Also updates the cursor on the screen if necessary

Parameters
xthe x-position of the new cursor location
ythe y-position of the new cursor location

Variable Documentation

◆ attrib

uint16_t attrib = PINK

◆ len

int len