Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

# ata.c File Reference

## Detailed Description

Definition in file ata.c.

`#include <avr/io.h>`
`#include <avr/interrupt.h>`
`#include <avr/pgmspace.h>`
`#include "global.h"`
`#include "timer.h"`
`#include "rprintf.h"`
`#include "ata.h"`

Go to the source code of this file.

## Functions
void | ataInit (void)
void | ataDriveInit (void)
void | ataDiskErr (void)
void | ataSetDrivePowerMode (u08 DriveNo, u08 mode, u08 timeout)
void | ataPrintSector (u08 *Buffer)
void | ataReadDataBuffer (u08 *Buffer, u16 numBytes)
void | ataWriteDataBuffer (u08 *Buffer, u16 numBytes)
u08 | ataStatusWait (u08 mask, u08 waitStatus)
unsigned char | ataReadSectorsCHS (unsigned char Drive, unsigned char Head, unsigned int Track, unsigned char Sector, unsigned int numsectors, unsigned char *Buffer)
unsigned char | ataWriteSectorsCHS (unsigned char Drive, unsigned char Head, unsigned int Track, unsigned char Sector, unsigned int numsectors, unsigned char *Buffer)
unsigned char | ataReadSectorsLBA (unsigned char Drive, unsigned long lba, unsigned int numsectors, unsigned char *Buffer)
unsigned char | ataWriteSectorsLBA (unsigned char Drive, unsigned long lba, unsigned int numsectors, unsigned char *Buffer)
unsigned char | ataReadSectors (unsigned char Drive, unsigned long lba, unsigned int numsectors, unsigned char *Buffer)
unsigned char | ataWriteSectors (unsigned char Drive, unsigned long lba, unsigned int numsectors, unsigned char *Buffer)
void | ataDriveSelect (u08 DriveNo)
u08 | ataReadByte (u08 reg)
void | ataWriteByte (u08 reg, u08 data)
void | ataShowRegisters (unsigned char DriveNo)
unsigned char | ataSWReset (void)
## Variables
typeDriveInfo | ataDriveInfo