Functions
usb.h File Reference

USB communication routines. More...

#include <stdint.h>
#include <stdbool.h>

Go to the source code of this file.

Functions

bool usb_BusPowered (void)
 
bool usb_SelfPowered (void)
 
void usb_ResetChip (void)
 
void usb_DisableTimers (void)
 
void usb_EnableTimers (void)
 
void usb_ResetTimers (void)
 

Detailed Description

USB communication routines.

Authors
Matt "MateoConLechuga" Waltz
Jacob "jacobly" Young

Function Documentation

◆ usb_BusPowered()

bool usb_BusPowered ( void  )
Returns
True if the usb bus line is powered, i.e. connected to a another calc

◆ usb_DisableTimers()

void usb_DisableTimers ( void  )

Disables the usb timer interrupt (timer 3)

◆ usb_EnableTimers()

void usb_EnableTimers ( void  )

Enables the usb timer interrupt (timer 3)

◆ usb_ResetChip()

void usb_ResetChip ( void  )

Resets the usb controller chip

◆ usb_ResetTimers()

void usb_ResetTimers ( void  )

Resets the usb timer interrupt (timer 3)

◆ usb_SelfPowered()

bool usb_SelfPowered ( void  )
Returns
True if the usb is self powered