mbed HRM1017によるAD9850の操作

Dependencies:   BLE_API mbed nRF51822

what's this ? / 概要

あとで、ちゃんと書く(とおもう)

detail / 詳細

あとで、ちゃんと書く(とおもう)

BEL command format / BLEコマンドフォーマット

あとで、ちゃんと書く(とおもう)

BLE App for iPhone

iOS用アプリソースコード App source codes for iOS

https://github.com/ohneta/AD9850BLE

pictures / とりあえず写真など

外観

/media/uploads/ohneta/img_5653.jpg

アプリ画面

/media/uploads/ohneta/img_0101.png

more ...

Committer:
ohneta
Date:
Thu Jun 18 03:58:23 2015 +0000
Revision:
0:cc32f8c167de
1st commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ohneta 0:cc32f8c167de 1 //----------------------------------------------------------------
ohneta 0:cc32f8c167de 2 //----------------------------------------------------------------
ohneta 0:cc32f8c167de 3 /**
ohneta 0:cc32f8c167de 4 * 中華DDS AD9850のコントロール
ohneta 0:cc32f8c167de 5 *
ohneta 0:cc32f8c167de 6 */
ohneta 0:cc32f8c167de 7 //----------------------------------------------------------------
ohneta 0:cc32f8c167de 8 //----------------------------------------------------------------
ohneta 0:cc32f8c167de 9
ohneta 0:cc32f8c167de 10 #include "mbed.h"
ohneta 0:cc32f8c167de 11
ohneta 0:cc32f8c167de 12
ohneta 0:cc32f8c167de 13 class AD9850 {
ohneta 0:cc32f8c167de 14
ohneta 0:cc32f8c167de 15 public:
ohneta 0:cc32f8c167de 16 AD9850(PinName data, PinName w_clk, PinName fu_ud, PinName reset);
ohneta 0:cc32f8c167de 17 ~AD9850();
ohneta 0:cc32f8c167de 18
ohneta 0:cc32f8c167de 19 void init();
ohneta 0:cc32f8c167de 20 void reset();
ohneta 0:cc32f8c167de 21 void setFrequency(int freq, int pdwon = 0, int phase = 0);
ohneta 0:cc32f8c167de 22
ohneta 0:cc32f8c167de 23 private:
ohneta 0:cc32f8c167de 24 DigitalOut _outBit;
ohneta 0:cc32f8c167de 25 DigitalOut _w_clk;
ohneta 0:cc32f8c167de 26 DigitalOut _fu_ud;
ohneta 0:cc32f8c167de 27 DigitalOut _reset;
ohneta 0:cc32f8c167de 28 };
ohneta 0:cc32f8c167de 29