AVRISP-MKII Clone Programmer Project

Functions | Variables
XPROGTarget.c File Reference
`#include "XPROGTarget.h"`

## Functions

void | XPROGTarget_EnableTargetPDI (void)
void | XPROGTarget_EnableTargetTPI (void)
void | XPROGTarget_DisableTargetPDI (void)
void | XPROGTarget_DisableTargetTPI (void)
void | XPROGTarget_SendByte (const uint8_t Byte)
uint8_t | XPROGTarget_ReceiveByte (void)
void | XPROGTarget_SendIdle (void)
static void | XPROGTarget_SetTxMode (void)
static void | XPROGTarget_SetRxMode (void)

## Variables

bool | IsSending

## Detailed Description

Target-related functions for the PDI Protocol decoder.

## Function Documentation

## § XPROGTarget_DisableTargetPDI()

void XPROGTarget_DisableTargetPDI | ( | void |  | ) |

Disables the target's PDI interface, exits programming mode and starts the target's application.

## § XPROGTarget_DisableTargetTPI()

void XPROGTarget_DisableTargetTPI | ( | void |  | ) |

Disables the target's TPI interface, exits programming mode and starts the target's application.

## § XPROGTarget_EnableTargetPDI()

void XPROGTarget_EnableTargetPDI | ( | void |  | ) |

Enables the target's PDI interface, holding the target in reset until PDI mode is exited.

## § XPROGTarget_EnableTargetTPI()

void XPROGTarget_EnableTargetTPI | ( | void |  | ) |

Enables the target's TPI interface, holding the target in reset until TPI mode is exited.

## § XPROGTarget_ReceiveByte()

uint8_t XPROGTarget_ReceiveByte | ( | void |  | ) |

Receives a byte via the hardware USART, blocking until data is received or timeout expired.

Returns
  Received byte from the USART

## § XPROGTarget_SendByte()

void XPROGTarget_SendByte | ( | const uint8_t | Byte | ) |

Sends a byte via the USART.

Parameters

  [in] | Byte | Byte to send through the USART

## § XPROGTarget_SendIdle()

void XPROGTarget_SendIdle | ( | void |  | ) |

Sends an IDLE via the USART to the attached target, consisting of a full frame of idle bits.

## § XPROGTarget_SetRxMode()

static void XPROGTarget_SetRxMode | ( | void |  | ) |

static

## § XPROGTarget_SetTxMode()

static void XPROGTarget_SetTxMode | ( | void |  | ) |

static

## Variable Documentation

## § IsSending

bool IsSending

Flag to indicate if the USART is currently in Tx or Rx mode.